From 4c2423a98542de4ab80ff75cb5987aa59f788ee1 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 15 Oct 1996 14:48:34 +0000 Subject: Simplify the autoconfig process a lot. svn path=/trunk/; revision=337 --- xmalloc.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'xmalloc.c') diff --git a/xmalloc.c b/xmalloc.c index 3679b508..9ea57c41 100644 --- a/xmalloc.c +++ b/xmalloc.c @@ -13,6 +13,7 @@ #include #include +#include #include #include "fetchmail.h" @@ -24,7 +25,7 @@ XMALLOCTYPE * xmalloc (n) -size_t n; +int n; { XMALLOCTYPE *p; @@ -35,3 +36,12 @@ size_t n; } return(p); } + +char *xstrdup(s) +char *s; +{ + char *p; + p = (char *) xmalloc(strlen(s)+1); + strcpy(p,s); + return p; +} -- cgit v1.2.3