Date: Sun, 14 Jan 2001 06:11:20 +0000 From: Ben Smithurst <ben@FreeBSD.org> To: Warner Losh <imp@harmony.village.org> Cc: "W.H.Scholten" <whs@xs4all.nl>, Alfred Perlstein <bright@wintelcom.net>, freebsd-hackers@FreeBSD.ORG Subject: Re: pppd & mkdir diff Message-ID: <20010114061120.K35575@strontium.scientia.demon.co.uk> In-Reply-To: <200101140355.f0E3tIs95857@harmony.village.org> References: <3A6025F1.794BDF32@xs4all.nl> <3A5C843C.794BDF32@xs4all.nl> <20010111132509.J7240@fw.wintelcom.net> <3A5EE6B1.41C67EA6@xs4all.nl> <20010112081422.U7240@fw.wintelcom.net> <3A6025F1.794BDF32@xs4all.nl> <200101140355.f0E3tIs95857@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Warner Losh wrote: > In message <3A6025F1.794BDF32@xs4all.nl> "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 / ben@FreeBSD.org / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010114061120.K35575>