#include #include #include int main() { int size = 256 * 1024 * 1024; int *a = NULL; a = (int *)malloc(size); if (a == NULL) { return 1; } else { memset(a, 1, size); free(a); return 0; } }