need C help, passing char buffer[] by-value....
David Kelly
dkelly at hiwaay.net
Tue Oct 20 15:09:58 UTC 2009
On Tue, Oct 20, 2009 at 05:42:41AM +0200, Polytropon wrote:
> Just a little and quite formal side note:
>
> On Mon, 19 Oct 2009 11:09:19 -0700, Patrick Mahan <mahan at mahan.org> wrote:
> > while (*tp != '\0' && *tp++ != '<');
>
> It's often a good choice, especially for increasing readability
> of code, to code the "empty statement" on a line on its own (as
> you usually put any statements on an own line for clarity), so
> the reader doesn't accidentally take it as and "end of command"
> notification, e. g.
>
> while(1)
> ;
>
> instead of
>
> while(1);
Agreed. I did exactly this in a code sample posted earlier in this
thread.
--
David Kelly N4HHE, dkelly at HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.
More information about the freebsd-questions
mailing list