Path: utzoo!attcan!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!rutgers!elbereth.rutgers.edu!ron.rutgers.edu!ron From: ron@ron.rutgers.edu (Ron Natalie) Newsgroups: comp.lang.c Subject: Re: How big is the argv[] array? Message-ID: Date: 6 Oct 88 17:03:38 GMT References: <1239500004@osiris.cso.uiuc.edu> <660020@hpclscu.HP.COM> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 10 > argv = (char **) realloc (argv, newsize * sizeof (char *)) NO, NO, NO! THIS WILL NEVER WORK! You can't realloc something that wasn't malloc'd. You can't make the assumption that argv was allocated by malloc, because it isn't true. ARGV is usually found on the stack, but even that is an left up to the implementation. -Ron