apps: make memeater use perror

This commit is contained in:
apio 2022-10-08 12:42:46 +02:00
parent ee7558a9b7
commit e76d903642

View File

@ -15,6 +15,6 @@ int main()
printf("Allocating 4 MB of memory... %lx\n", (unsigned long)allocated);
sleep(1);
} while ((allocated = malloc(CHUNK)));
printf("Out of memory. (errno=%d, %s)\n", errno, strerror(errno));
perror("malloc");
printf("Press any key to restart.\n");
}