File: realloc.c

package info (click to toggle)
html-xml-utils 7.7-1.3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,540 kB
  • sloc: ansic: 11,213; sh: 7,996; lex: 243; makefile: 192; yacc: 125
file content (19 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#if HAVE_CONFIG_H
# include "config.h"
#endif
#undef realloc

#include <sys/types.h>

void *realloc ();

/* Allocate an N-byte block of memory from the heap.
   If N is zero, allocate a 1-byte block.  */

void *
rpl_realloc (void *p, size_t n)
{
  if (n == 0)
    n = 1;
  return realloc (p, n);
}