Optimization considered harmful

Brad Sherman bks at alfa.berkeley.edu
Thu Nov 1 06:45:21 AEST 1990


In article <1990Oct31.014132.2400 at agate.berkeley.edu> bks at 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 at seismo.gps.caltech.edu for pointing this out.
-------------------------
	Brad Sherman (bks at alfa.berkeley.edu)



More information about the Comp.lang.c mailing list