fs_dirname
-
size_t fs_dirname(const char *path, char *buf, size_t size)
Gets the directory name of path.
char dirname[256]; fs_dirname("./foo.txt", dirname, 256);
- Parameters
path – [in] Some null-terminated path
buf – [out] Buffer for storing the result path
size – [in] Buffer size
- Returns
The number of bytes that would have been written if buf was large enough (excluding the null-terminating character).