In message <[EMAIL PROTECTED]> "W.H.Scholten" writes:
: + while (path[ strlen(path)-1 ] == '/') path[ strlen(path)-1 ] = 0;
Style(9) says write this like:
while (path[ strlen(path)-1 ] == '/')
path[ strlen(path)-1 ] = 0;
: +
: + slash = strrchr(path, '/');
: + if (slash) {
: + *slash = 0;
this is not an integer, but rather a character. *slash = '\0'; please.
: + while (path[ strlen(path)-1 ] == '/') path[ strlen(path)-1 ] = 0;
Ditto.
But why do this at all?
'mkdir /a/b/////d/e' is required by posix to create /a/b/d/e if /a/b/d
exists.
Warner
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message