How big is the argv[] array?

Doug Gwyn gwyn at smoke.ARPA
Fri Oct 7 19:26:38 AEST 1988


In article <660020 at hpclscu.HP.COM> shankar at hpclscu.HP.COM (Shankar Unni) writes:
>  argv = (char **) realloc (argv, newsize * sizeof (char *))

NO! NO! NO!  Realloc only areas obtained from malloc (or calloc).
You don't know where the argv array came from but the odds are good
that it was NOT malloced by the startup module.



More information about the Comp.lang.c mailing list