diff options
Diffstat (limited to 'src/shared/include')
-rw-r--r-- | src/shared/include/camellia/path.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shared/include/camellia/path.h b/src/shared/include/camellia/path.h index ba6bccf..8efa0d4 100644 --- a/src/shared/include/camellia/path.h +++ b/src/shared/include/camellia/path.h @@ -1,3 +1,10 @@ #pragma once +#include <stddef.h> #define PATH_MAX 512 + +/** Reduce a path to its simplest form. + * + * @return length of the string in *out, always less than len. Negative if the path was invalid. + */ +int path_simplify(const char *in, char *out, size_t len); |