diff options
author | dzwdz | 2021-08-08 23:23:27 +0200 |
---|---|---|
committer | dzwdz | 2021-08-08 23:23:27 +0200 |
commit | 0297e9db976aa2c3f17e237c6c5c37f3fde454a9 (patch) | |
tree | 1c2bc574dd78da9dba2a83109a4b45bca31bee29 /src/kernel/vfs/path.h | |
parent | 9b561ea71ab38e2893e887b8d902e7f8e16bac89 (diff) |
path_simplify now returns int, has better tests
Diffstat (limited to 'src/kernel/vfs/path.h')
-rw-r--r-- | src/kernel/vfs/path.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/vfs/path.h b/src/kernel/vfs/path.h index 22dc754..3aefccf 100644 --- a/src/kernel/vfs/path.h +++ b/src/kernel/vfs/path.h @@ -6,6 +6,6 @@ * *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 + * @return length of the string in *out, always less than len. Negative if the path was invalid. */ -bool path_simplify(const char *in, char *out, size_t len); +int path_simplify(const char *in, char *out, size_t len); |