mirror of
https://github.com/0intro/wmii
synced 2024-11-27 00:00:36 +03:00
removed estrdup
This commit is contained in:
parent
ea37c5afe7
commit
c2475e7e28
@ -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}
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user