Author: rwatson
Date: Tue Oct 6 14:05:57 2009
New Revision: 197804
URL: http://svn.freebsd.org/changeset/base/197804
Log:
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
Robert Watson escribió:
+
+char *
+basename(path)
+ const char *path;
+{
+ static char *bname = NULL;
+
Sorry if it's a trivial question but isn't ANSI prototype preferred over
KR function definition?
--
Gabor Kovesdan
FreeBSD Volunteer
EMAIL: ga...@freebsd.org .:|:.
On 6 Oct 2009, at 20:27, Gabor Kovesdan wrote:
Robert Watson escribió:
+
+char *
+basename(path)
+ const char *path;
+{
+ static char *bname = NULL;
+
Sorry if it's a trivial question but isn't ANSI prototype preferred
over KR function definition?
For the purposes of this