gint/src/stdlib/realloc.c

26 lines
368 B
C

#include <stdlib.h>
/*
realloc()
Reallocates a memory block and moves its data.
*/
#ifndef GINT_NO_SYSCALLS
#include <internals/syscalls.h>
void *realloc(void *ptr, size_t size)
{
return __realloc(ptr, size);
}
#else
#pragma GCC diagnostic ignored "-Wunused-parameter"
void *realloc(void *ptr, size_t size)
{
return NULL;
}
#pragma GCC diagnostic pop
#endif