Q: Realloc of function parameter problem.

Doug Gwyn gwyn at smoke.BRL.MIL
Tue Nov 28 07:42:18 AEST 1989


In article <3752 at umiami.miami.edu> SLORES at umiami.miami.edu (Stanislaw L. Olejniczak) writes:
>I seem to have a problem with realloc...

You must realloc() only storage previously obtained via malloc(), calloc(),
or realloc().  String literals are not among these.



More information about the Comp.lang.c mailing list