File: realloc.c

package info (click to toggle)
harp 1.29-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 57,028 kB
  • sloc: xml: 475,954; ansic: 175,442; sh: 4,898; yacc: 2,186; javascript: 1,510; python: 1,148; makefile: 656; lex: 591
file content (13 lines) | stat: -rw-r--r-- 295 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#undef realloc

#include <sys/types.h>

void *realloc ();

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

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