commit c2475e7e28c3d562e975b8eed7c76391f2fe767a
parent ea37c5afe7527304a0cf862f34070354a2f7bcfa
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Tue, 13 Jun 2006 09:20:41 +0200
removed estrdup
Diffstat:
3 files changed, 1 insertion(+), 25 deletions(-)
diff --git a/libcext/Makefile b/libcext/Makefile
@@ -3,7 +3,7 @@
include ../config.mk
-SRC = assert.c emallocz.c estrdup.c strlcat.c strlcpy.c tokenize.c trim.c vector.c
+SRC = assert.c emallocz.c strlcat.c strlcpy.c tokenize.c trim.c vector.c
OBJ = ${SRC:.c=.o}
diff --git a/libcext/cext.h b/libcext/cext.h
@@ -12,9 +12,6 @@
/* emallocz.c */
void *cext_emallocz(unsigned int size);
-/* estrdup.c */
-char *cext_estrdup(const char *s);
-
/* strlcat.c */
unsigned int cext_strlcat(char *dst, const char *src, unsigned int siz);
diff --git a/libcext/estrdup.c b/libcext/estrdup.c
@@ -1,21 +0,0 @@
-/*
- * (C)opyright MMIV-MMVI Anselm R. Garbe <garbeam at gmail dot com>
- * See LICENSE file for license details.
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-
-#include "cext.h"
-
-char *
-cext_estrdup(const char *s)
-{
- char *tmp;
-
- tmp = (char *) cext_emallocz(strlen(s) + 1);
- strcpy(tmp, (char *) s);
-
- return tmp;
-}