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)
|