[sclug] Off topic C question

Matt Dainty matt at bodgit-n-scarper.com
Fri Sep 22 10:47:14 UTC 2006


* Patrick <patrick at kirks.net> [2006-09-22 11:12:15]:
> Hi all,
> 
> Can anyone see why this character counting program always finds zero 
> characters?  Its based on an example from K&R Chapter 1 which also fails.

As a number of people have pointed out the problem, but I feel I should
reinforce that "l" and 'l' are not the same thing.

Checking my copy of K&R shows '' was used, not "", (I presume you were
basing the code on 1.5.3).

Matt
-- 
"I know it's your T1 because our network guy teleported into the Baywatch
hub and checked it!"
"It's 'telnet' and 'Bay Networks'."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.tmdg.co.uk/pipermail/sclug/attachments/20060922/c55fd120/attachment.bin


More information about the Sclug mailing list