diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-07-06 01:22:24 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-07-06 01:22:24 +0000 |
commit | f934cd05300c0683f78bbeb1d9697bd947df0854 (patch) | |
tree | be8bd7387d76f13ab1e4058d1264663d3f5182b1 | |
parent | cba38d38fb2f7d5bd405a9980bcd8783dd00feba (diff) |
we need stdio.h for printf()
-rw-r--r-- | test/malloc/realloc0.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/malloc/realloc0.c b/test/malloc/realloc0.c index afe9bb9bd..62ae39d25 100644 --- a/test/malloc/realloc0.c +++ b/test/malloc/realloc0.c @@ -1,13 +1,13 @@ #include <stdlib.h> +#include <stdio.h> int main(int argc, char **argv) { - void *ptr = NULL; - ptr = realloc(ptr, 0); - printf("realloc(NULL, 0) -- pointer = %p\n", ptr); - - ptr = malloc(0); - printf("malloc(0) -- pointer = %p\n", ptr); - return 0; -} + void *ptr = NULL; + ptr = realloc(ptr, 0); + printf("realloc(NULL, 0) -- pointer = %p\n", ptr); + ptr = malloc(0); + printf("malloc(0) -- pointer = %p\n", ptr); + return 0; +} |