by Mark McIntyre <markmcintyre@[EMAIL PROTECTED]
>
May 8, 2008 at 08:59 AM
Bill Cunningham wrote:
> "Joe Wright" <joewwright@[EMAIL PROTECTED]
> wrote in message
> news:xdKdnd0Wq_nixb_VnZ2dnUVZ_jSdnZ2d@[EMAIL PROTECTED]
>> ..given your program as input. What do you think?
>>
>
> The first copy of the file I wrote has had its indentation changed
by
> the news server or client. It was indented when I posted it and the
> indentation was removed. Maybe nntp does that. The progran was
originally
> indented like this.
>
> if (argc!3) {
> fprintf(stderr,"usage error\n");
> return -1;
> }
This is one of many possible styles. The main thing is to use
intentation to identify each block, and to use a consistent style.
The two commonest are probable
if (x)
{
bodyhere();
}
and
if (x) {
bodyhere();
}
The one you used above is less common in my experience.