diff options
Diffstat (limited to 'src/kernel/vfs/path.h')
-rw-r--r-- | src/kernel/vfs/path.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/kernel/vfs/path.h b/src/kernel/vfs/path.h new file mode 100644 index 0000000..22dc754 --- /dev/null +++ b/src/kernel/vfs/path.h @@ -0,0 +1,11 @@ +#pragma once +#include <stdbool.h> +#include <stddef.h> + +/** Reduce a path to its simplest form. + * *in and *out can't overlap unless they're equal. Then, the path is modified + * in-place. + * + * @return Was the path valid? If this is false, *out is undefined + */ +bool path_simplify(const char *in, char *out, size_t len); |