Gitiles
Code Review
Sign In
192.168.1.100
/
T106_DC
/
9ed821d7e5d875a3395740a9cc2545671fa429b7
/
.
/
ap
/
build
/
uClibc
/
test
/
malloc
/
realloc0.c
blob: 62ae39d25b766d146bfec0fb39b21c55dcd10a49 [
file
] [
log
] [
blame
]
#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
;
}