diff options
author | dzwdz | 2022-08-28 13:02:10 +0200 |
---|---|---|
committer | dzwdz | 2022-08-28 13:02:10 +0200 |
commit | f0bda71fe2a4df4201c6195be1fe46cf895c134d (patch) | |
tree | 098f6d4007d74569d486b515d95986b8c145d492 /src/user/lib/include | |
parent | c43b0ac7672b0d8fce8b1ea0a0dbe4383d60485e (diff) |
shared/path_simplify: return an unsigned value
Diffstat (limited to 'src/user/lib/include')
-rw-r--r-- | src/user/lib/include/unistd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/user/lib/include/unistd.h b/src/user/lib/include/unistd.h index 1f0c002..59af24b 100644 --- a/src/user/lib/include/unistd.h +++ b/src/user/lib/include/unistd.h @@ -19,6 +19,9 @@ char *getcwd(char *buf, size_t size); * except for the root dir. Includes the null byte. * If size isn't enough to fit the path, returns the amount of bytes needed to fit * it, including the null byte. + * + * Note that some errors are only detected if *out != NULL, so you must check the return + * value twice. * @return 0 on failure, length of the path otherwise */ size_t absolutepath(char *out, const char *in, size_t size); |