TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: WADE CARPENTER
from: NEIL HELLER
date: 1997-07-27 09:47:00
subject: HOW WOULD I...

WC> Yep.. It worked like a charm!!! Thanks so much for the help, 
WC> because I never
WC> would have thought of that!!  So, would it generally be better then, to 
WC> use 'char any[50]' instead of using 'char *any'?  
 
RD> The -- char *any -- has the advantage in that you could change the
RD> amount of memory allocated to it by calling -- realloc() -- or you
RD> could return the memory occupied by it back to the system with --
RD> free() --
In the case of the shop where I work, we have a very strict limit as
to the number of bytes of automatic variables that can be placed on the
stack by any one function.  Using automatic pointers requires only a
minimal amount of stack space.
 * KWQ/2 1.2i * 
--- TMail v1.31.5
---------------
* Origin: Diablo Valley PCUG-BBS, Walnut Creek, CA 510/943-6238 (1:161/55)

SOURCE: echomail via exec-pc

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™.