Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!usc!apple!agate!usenet From: bks@alfa.berkeley.edu (Brad Sherman) Newsgroups: comp.lang.c Subject: Re: Optimization considered harmful Message-ID: <1990Oct31.194521.8066@agate.berkeley.edu> Date: 31 Oct 90 19:45:21 GMT References: <1990Oct31.014132.2400@agate.berkeley.edu> Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: University of California, Berkeley Lines: 12 In article <1990Oct31.014132.2400@agate.berkeley.edu> bks@alfa.berkeley.edu (Brad Sherman) writes: > if ((s_array = (STRING **)malloc(100 * sizeof(STRING))) == NULL) { This line should read > if ((s_array = (STRING **)malloc(100 * sizeof(STRING *))) == NULL) { ^^ This was a transcription problem and all other comments in the posting stand. (The original program, in fact had nothing to do with STRING's.) Thanks to bruce@seismo.gps.caltech.edu for pointing this out. ------------------------- Brad Sherman (bks@alfa.berkeley.edu)