File: malloc.c

package info (click to toggle)
flex 2.5.39-8%2Bdeb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 9,532 kB
  • ctags: 2,388
  • sloc: sh: 12,380; ansic: 11,993; lex: 3,902; makefile: 1,261; yacc: 1,003; awk: 78; cpp: 25; sed: 16
file content (17 lines) | stat: -rwxr-xr-x 358 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
     #include <config.h>
     #undef malloc
     
     #include <sys/types.h>
     
     void *malloc ();
     
     /* Allocate an N-byte block of memory from the heap.
        If N is zero, allocate a 1-byte block.  */
     
     void *
     rpl_malloc (size_t n)
     {
       if (n == 0)
         n = 1;
       return malloc (n);
     }