Functions | |
cxlong | cx_path_max (const cxchar *path) |
Get the maximum length of a path relative to the given directory. | |
cxchar * | cx_path_alloc (const char *path) |
Allocate a buffer suitable for storing a relative pathname staring at a given directory. |
#include <cxfileutils.h>
cxchar* cx_path_alloc | ( | const char * | path | ) |
Allocate a buffer suitable for storing a relative pathname staring at a given directory.
path | Directory name the relative path should start from. |
NULL
in case of an error.IF the string "/" is used for path the returned buffer will have the maximum length possible for an absolute path supported by the system (but see the note for cx_path_max() for pitfalls).
cxlong cx_path_max | ( | const cxchar * | path | ) |
Get the maximum length of a path relative to the given directory.
path | Directory name. |