dev/c/5minLorTest/typical_errors_in_c.c

13 lines
189 B
C

#include <stdlib.h>
#include <malloc.h>
#define MALLOC(x,y) { y=malloc(x); if (!y) abort(); }
int main(int argc, char * argv[])
{
void * p = NULL;
MALLOC(3,p);
return EXIT_SUCCESS;
}