[ Create a new account ]
# use <stdlib.h> # use <stdio.h>
and I didn't notice it until the compiler complained.
Abigail (Darn, why isn't <PRE> allowed? That would make it a lot easier to show code.)
if (p) { p++ } /* Error 1 */
But worse still was the following (simplified) awk program that returned 0 for the number of counted words:
awk '{$c += NF} END{print $c}' file # Error 2
-- John. 1. Missing statement terminator. 2. Should be c instead of $c.
It's smarter <pre> .
<pre>
-- Robin Berjon [berjon.com]
Get More Comments
Reply
Re: C is not Perl. (Score:2, Interesting)
But worse still was the following (simplified) awk program that returned 0 for the number of counted words:
--
John.
1. Missing statement terminator. 2. Should be c instead of $c.
ecode (Score:2)
It's smarter
<pre>.-- Robin Berjon [berjon.com]