diff --git a/hogs/malloc.c b/hogs/malloc.c new file mode 100644 index 0000000..19e99ae --- /dev/null +++ b/hogs/malloc.c @@ -0,0 +1,10 @@ +#include +#include + +int main(int argc, char **argv) { + size_t size = strtoul(argv[1], NULL, 0); + char *p = malloc(size); + printf("%zu bytes at %p\n", size, p); + sleep(10); + return 0; +}