5773063 [rkeene@sledge /home/rkeene/projects/libssh-win32/v0.11/src/libssh-0.11-win32/libssh]$ cat -n malloc.c
 1 #include "libssh/priv.h"
 2 
 3 #ifdef HAVE_MALLOC
 4 #  if HAVE_MALLOC == 0
 5 
 6 #undef malloc
 7 
 8 #include <sys/types.h>
 9 
10 void *malloc ();
11 
12 /* Allocate an N-byte block of memory from the heap. If N is zero, allocate a 1-byte block. */
13 
14 void * rpl_malloc (size_t n) { if (n == 0) n = 1; return malloc (n); } 
15 #  endif
16 #endif
5773064 [rkeene@sledge /home/rkeene/projects/libssh-win32/v0.11/src/libssh-0.11-win32/libssh]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2007-02-17 17:46:50