int main () { int *s = (int*)malloc (sizeof (int)); if (s != NULL) { // execute some code free (s); } else { perror ("malloc"); abort (); } return 0; }