1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-17 09:06:50 +02:00

(rpl_realloc): Likewise. Also, define with a prototype.

This commit is contained in:
Jim Meyering
2003-09-10 08:53:52 +00:00
parent 9ff401ebc9
commit fe6f9d5a66
+3 -8
View File
@@ -22,19 +22,14 @@
#endif
#undef realloc
#include <stddef.h>
char *malloc ();
char *realloc ();
#include <stdlib.h>
/* Change the size of an allocated block of memory P to N bytes,
with error checking. If N is zero, change it to 1. If P is NULL,
use malloc. */
char *
rpl_realloc (p, n)
char *p;
size_t n;
void *
rpl_realloc (void *p, size_t n)
{
if (n == 0)
n = 1;