Add missing comment for the offset argument of tokenize. Add error checko on the offset.

This commit is contained in:
Enrico Fraccaroli (Galfurian)
2024-02-29 11:06:04 -05:00
parent ed7454f1e0
commit d213276817
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ int unlink(const char *path);
int symlink(const char *linkname, const char *path);
/// @brief Read the symbolic link, if present.
/// @param file the file for which we want to read the symbolic link information.
/// @param path the file for which we want to read the symbolic link information.
/// @param buffer the buffer where we will store the symbolic link path.
/// @param bufsize the size of the buffer.
/// @return The number of read characters on success, -1 otherwise and errno is set to indicate the error.