Glen Turner wrote:

I've re-written the code using more normal C idioms.

I should note that I wouldn't have done it this way by preference, I'm just showing David where he went wrong.

Personally I'd have done

   for (p = "This is a test"; *p; p++) {
       putchar(*p + 1);
   }

which also would have made the *p=255 issue someone else's
problem :-)

--
 Glen Turner         Tel: (08) 8303 3936 or +61 8 8303 3936
 Australia's Academic & Research Network  www.aarnet.edu.au
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to