GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
Utility functions for building paths. More...
#include <utils/gp_path.h>
Go to the source code of this file.
Functions | |
char * | gp_user_path (const char *path, const char *file_name) |
Prepares a buffer with a path. | |
int | gp_user_mkpath (const char *path, enum gp_mkpath_flags flags) |
Creates a path, if it does not exists. | |
Utility functions for building paths.
Definition in file gp_user_path.h.
int gp_user_mkpath | ( | const char * | path, |
enum gp_mkpath_flags | flags | ||
) |
Creates a path, if it does not exists.
The path is constructed in "$HOME/$PATH/".
Works exactly the same as 'mkdir -p'.
path | A path, one or more directories. |
char * gp_user_path | ( | const char * | path, |
const char * | file_name | ||
) |
Prepares a buffer with a path.
The path is constructed as "$HOME/$PATH/$FILE_NAME".
path | A path, one or more directories. |
file_name | A file name. |