]> Git Repo - uclibc-ng.git/commitdiff
we need stdio.h for printf()
authorMike Frysinger <[email protected]>
Wed, 6 Jul 2005 01:22:24 +0000 (01:22 -0000)
committerMike Frysinger <[email protected]>
Wed, 6 Jul 2005 01:22:24 +0000 (01:22 -0000)
test/malloc/realloc0.c

index afe9bb9bdce6dcec882b2efa8ece25534786119a..62ae39d25b766d146bfec0fb39b21c55dcd10a49 100644 (file)
@@ -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;
+}
This page took 0.025898 seconds and 4 git commands to generate.