aboutsummaryrefslogtreecommitdiffstats
path: root/src/filepath.h
blob: 13382af55b9759d397961d70a4ce8f34ed4209dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* filepath.h
 *
 * Copyright (c) 2014-2017 Tharre
 *
 * This software may be modified and distributed under the terms
 * of the MIT license.  See the LICENSE file for details.
 */

#ifndef __FILEPATH_H__
#define __FILEPATH_H__

#include <stdbool.h>

extern bool is_absolute(const char* path);
extern char *remove_ext(const char *str);
extern char *take_extension(const char *target);
extern char *relpath(char *path, char *start);
extern char *xbasename(const char *path);
extern bool fexists(const char *target);
extern off_t fsize(const char *fn);
extern void mkpath(char *path, mode_t mode);
extern char *make_abs(char *root, char *path);

#endif