removed estrdup

This commit is contained in:
Anselm R. Garbe 2006-06-13 09:20:41 +02:00
parent ea37c5afe7
commit c2475e7e28
3 changed files with 1 additions and 25 deletions

View File

@ -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}

View File

@ -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);

View File

@ -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;
}