Contact: aviboots(AT)netvision.net.il
42,187 questions
54,895 answers
573 users
#include <stdio.h> #include <stdlib.h> int main() { char *p = (char*) malloc(15 * sizeof(char)); if (p == NULL) { printf("malloc error"); return 1; } printf("malloc ok"); free(p); return 0; } /* run: malloc ok */