c++ question

Andrew McNabb amcnabb at mcnabbs.org
Fri Sep 22 13:07:09 MDT 2006


On Fri, Sep 22, 2006 at 01:06:03PM -0600,  wrote:
> 
> char *p;
> for (p = s; p < 100; p++) {
> 	putchar(*p);
> }
> 

Of course, I obviously meant:

for (p = s; p < s + 100; p++)



-- 
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55  8012 AB4D 6098 8826 6868
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://plug.org/pipermail/plug/attachments/20060922/842ebd19/attachment.bin 


More information about the PLUG mailing list