TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: andrew clarke
from: Jasen Betts
date: 2004-01-29 06:56:24
subject: [C] Question about external variable initialization

Hi andrew.

28-Jan-04 16:05:16, andrew clarke wrote to Bo Simonsen


 ac>                      if (tmptext == NULL)
 ac>                          return NULL;

 BS>>                 strcpy(tmptext, text);
 BS>>         }
 BS>>         return tmptext;
 BS>> }

strcpy won't overwrite NULL.

 -=> Bye <=-

---
* Origin: Keyboard not connected, press to continue. (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™.