Mail Archives: djgpp/1998/03/19/23:02:17
Zoey4Pres wrote:
>
> On the other hand, he could have used realloc and preserved the form of his
> original function.
>
> s = (char *)realloc ...
Two problems here. First, since the original variable is an automatic
array, not a pointer, you can't realloc() it. Second, since it is
passed by value, changing it in mstrcat() would not apply that change to
the original variable.
--
---------------------------------------------------------------------
| John M. Aldrich | "Autocracy is based on the assumption|
| aka Fighteer I | that one man is wiser than a million |
| mailto:fighteer AT cs DOT com | men. Let's play that over again, |
| http://www.cs.com/fighteer | too. Who decides?" - Lazarus Long |
---------------------------------------------------------------------
- Raw text -