summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-10-06 14:05:57 +0000
committerrwatson <rwatson@FreeBSD.org>2009-10-06 14:05:57 +0000
commitfd2a94971be3ae7d27b361e6a81e7dea97a15966 (patch)
treea93ad50032ecad21316acf5415e575f4f5e2fc27 /include
parentb1ce942125b70ba14ecffee512770eea9eb85b0f (diff)
downloadFreeBSD-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.h1
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 *, ...);
OpenPOWER on IntegriCloud