TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Bill Birrell
from: Jasen Betts
date: 2004-04-17 08:16:18
subject: Squares

Hi Bill.

15-Apr-04 10:23:03, Bill Birrell wrote to Darin McBride


 >>  JB> and possibly even better re-written to use a char* instead

 >>  JB>  for( s=target ; *s ; s++ ) {

 >> Yes, I like this even more ;-)

 BB>     Not much point in using a for(;;) loop at all then. Why not just:-

 BB>     char *s=target;
 BB>     while(*s++) {...};

 BB>     simpler, neater, more direct.

but not equivalent.

  char *s=target-1;
  while(*++s) {...};


-=>bye<=-
---
* Origin: Dogs come when you call, cats have answering machines (3:640/1042)
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.