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:
+3
-8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user