diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-10-06 14:05:57 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-10-06 14:05:57 +0000 |
commit | fd2a94971be3ae7d27b361e6a81e7dea97a15966 (patch) | |
tree | a93ad50032ecad21316acf5415e575f4f5e2fc27 /include | |
parent | b1ce942125b70ba14ecffee512770eea9eb85b0f (diff) | |
download | FreeBSD-src-fd2a94971be3ae7d27b361e6a81e7dea97a15966.zip FreeBSD-src-fd2a94971be3ae7d27b361e6a81e7dea97a15966.tar.gz |
Add basename_r(3) to complement basename(3). basename_r(3) which accepts
a caller-allocated buffer of at least MAXPATHLEN, rather than using a
global buffer.
MFC after: 1 month
Sponsored by: Google
Diffstat (limited to 'include')
-rw-r--r-- | include/libgen.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libgen.h b/include/libgen.h index 3639c71..0d4472f 100644 --- a/include/libgen.h +++ b/include/libgen.h @@ -36,6 +36,7 @@ __BEGIN_DECLS char *basename(const char *); +char *basename_r(const char *, char *); char *dirname(const char *); #if 0 char *regcmp(const char *, ...); |