Contact: aviboots(AT)netvision.net.il
41,379 questions
53,922 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 */