diff options
author | rsc <devnull@localhost> | 2004-06-09 14:25:42 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-06-09 14:25:42 +0000 |
commit | 22f3ae27019cc24faaac443b843a3683dd4aef67 (patch) | |
tree | b10b386e5ea20e2eeb497b57e176869189006a5f | |
parent | 65de82a30f67103eb9ec1cbc9ab62725b03e7423 (diff) | |
download | plan9port-22f3ae27019cc24faaac443b843a3683dd4aef67.tar.gz plan9port-22f3ae27019cc24faaac443b843a3683dd4aef67.tar.bz2 plan9port-22f3ae27019cc24faaac443b843a3683dd4aef67.zip |
catch strdup, malloc, and friends
-rw-r--r-- | include/libc.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libc.h b/include/libc.h index 18ac25aa..3b472e39 100644 --- 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 /* |