From 80b8ff07ca4c39114875c7fd3230c4e9ae823f83 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 19 May 2006 20:36:49 +0000 Subject: A pending item in my tree I might as well check in: I plan to migrate calloc() and bb_calloc() calls to bb_xzalloc() which allocates prezeroed memory but only takes one argument (the size). --- include/libbb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/libbb.h') diff --git a/include/libbb.h b/include/libbb.h index 461c28fcb..ca3afea98 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -183,6 +183,7 @@ void run_applet_by_name(const char *name, int argc, char **argv); * to have the prototypes here unconditionally. */ extern void *xmalloc(size_t size); extern void *xrealloc(void *old, size_t size); +extern void *xzalloc(size_t size); extern void *xcalloc(size_t nmemb, size_t size); extern char *bb_xstrdup (const char *s); -- cgit v1.2.3