diff options
Diffstat (limited to 'gnu/usr.bin/ld/rtld/malloc.c')
-rw-r--r-- | gnu/usr.bin/ld/rtld/malloc.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gnu/usr.bin/ld/rtld/malloc.c b/gnu/usr.bin/ld/rtld/malloc.c index 920dcba..f6f2bf5 100644 --- a/gnu/usr.bin/ld/rtld/malloc.c +++ b/gnu/usr.bin/ld/rtld/malloc.c @@ -33,7 +33,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)malloc.c 5.11 (Berkeley) 2/23/91";*/ -static char *rcsid = "$Id$"; +static char *rcsid = "$Id: malloc.c,v 1.7 1997/02/22 15:46:46 peter Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -480,3 +480,16 @@ int n; #endif return n; } + +void * +calloc(num, size) + size_t num; + register size_t size; +{ + register void *p; + + size *= num; + if ( (p = malloc(size)) ) + bzero(p, size); + return(p); +} |