X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=strdup.c;fp=strdup.c;h=0000000000000000000000000000000000000000;hp=9920a4acb728326a1ec6b8d32b27a4144a32785a;hb=9114fccb27d817ba18918a84524e6e8b1998f361;hpb=ebad7634114993e2e96fa66fda4b705d05832193 diff --git a/strdup.c b/strdup.c deleted file mode 100644 index 9920a4a..0000000 --- a/strdup.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright notice from original mutt: - * [none] - * - * This file is part of mutt-ng, see http://www.muttng.org/. - * It's licensed under the GNU General Public License, - * please see the file GPL in the top level source directory. - */ - -/* ultrix doesn't have strdup */ - -#include -#include - -char *strdup (const char *s) -{ /* __MEM_CHECKED__ */ - char *d; - - if (s == NULL) - return NULL; - - if ((d = malloc (str_len (s) + 1)) == NULL) /* __MEM_CHECKED__ */ - return NULL; - - memcpy (d, s, str_len (s) + 1); - return d; -}