This isn't a BSD question. It's just about elementary C. As other
people pointed out, you could have easily caught it anyway just by
turning on warnings.
Gary Kline wrote:
people, i've been under the weather for days and will probably be for a few
new and TEMPORARY meds dont like me, ugh.
can anybody clue me in why the followin joinline program fails to catch if argc
* simple prog to join all | very nearly all lines of a text file that
* make up one paragraph into one LONG line.
* paragraphs are delimiated by a single \n break.
main(int argc, char argv)
if (argc == 1)
printf("Usage: %s < file > newfile\n", argv);
while (fgets(buf, sizeof buf, stdin) )
if (*buf == '\n')
buf[strlen(buf)-1] = ' ';
email@example.com mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"