Archived
1
0
Fork 0

path.c: added dirname_s function.

This commit is contained in:
Henrik Hautakoski 2011-02-11 19:17:38 +01:00
parent 79f18e6671
commit 546e7c50f1
4 changed files with 41 additions and 5 deletions

View file

@ -38,3 +38,11 @@ The function performs this type of checks/manipulation:
+
Returns `NULL` if 'base' is not an absolute path or 'name' contains a delimiter.
`dirname_s`::
Safe dirname implementation. works like POSIX dirname with some modifications: +
+
--
* 'slash' may be used to terminate the string with a \'/' character. +
* The function will never modify 'path' instead the function will *always* return a static buffer that will be overwritten by subsequent calls.
--