gcc -Wall fails to catch wrong use of calloc

Ajay Shah ajayshah at alhena.usc.edu
Thu May 23 05:57:26 AEST 1991


Script started on Tue May 21 09:16:16 1991
[max 4] cat a.c
#include <stdlib.h>
int main()
{
	char *p;
	p = (char *) malloc(100);
	p = (char *) realloc(200);
	return 0;
}
[max 5] gcc -Wall a.c
[max 6] exit
[max 7] 
script done on Tue May 21 09:16:49 1991

-- 
_______________________________________________________________________________
Ajay Shah, (213)734-3930, ajayshah at usc.edu
                             The more things change, the more they stay insane.
_______________________________________________________________________________



More information about the Comp.lang.c mailing list