Warner Losh wrote:
> 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;
<nitpick>
No it doesn't.
"No spaces after `(' or `[' or preceding `]' or `)' characters."
"Unary operators don't require spaces, binary operators do."
while (path[strlen(path) - 1] == '/')
path[strlen(path) - 1] = 0;
:-) Preferably '\0' too of course like you say later.
--
Ben Smithurst / [EMAIL PROTECTED] / PGP: 0x99392F7D
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message