OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [test/] [malloc/] [realloc0.c] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
#include <stdlib.h>
2
 
3
int main(int argc, char **argv)
4
{
5
    void *ptr = NULL;
6
    ptr = realloc(ptr, 0);
7
    printf("realloc(NULL, 0)  --  pointer = %p\n", ptr);
8
 
9
    ptr = malloc(0);
10
    printf("malloc(0)  --  pointer = %p\n", ptr);
11
    return 0;
12
}
13
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.