plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 22f3ae27019cc24faaac443b843a3683dd4aef67
parent 65de82a30f67103eb9ec1cbc9ab62725b03e7423
Author: rsc <devnull@localhost>
Date:   Wed,  9 Jun 2004 14:25:42 +0000

catch strdup, malloc, and friends

Diffstat:
Minclude/libc.h | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/libc.h b/include/libc.h @@ -40,8 +40,8 @@ extern int strcmp(char*, char*); extern char* strcpy(char*, char*); */ extern char* strecpy(char*, char*, char*); - /* -extern char* strdup(char*); +extern char* p9strdup(char*); +/* extern char* strncat(char*, char*, long); extern char* strncpy(char*, char*, long); extern int strncmp(char*, char*, long); @@ -128,6 +128,8 @@ extern void* malloctopoolblock(void*); #define realloc p9realloc #define calloc p9calloc #define free p9free +#undef strdup +#define strdup p9strdup #endif /*