summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/path.h
blob: 769aa2756cf5f6c7378b6a0d05bd49dce10c3310 (plain)
1
2
3
4
5
6
7
8
#pragma once
#include <stddef.h>

/** 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);