commit 0668c1e29ece94b0b354fafda580da239c2404c2 parent 93d619b7bdc3f2e6178de14620593008236fc0e2 Author: Kris Maglione <jg@suckless.org> Date: Sat, 3 Feb 2007 14:36:04 -0500 Dummy merge with head -r1418 to kill it Diffstat:
| libcext/estrdup.c | | | 21 | +++++++++++++++++++++ |
1 file changed, 21 insertions(+), 0 deletions(-)
diff --git a/libcext/estrdup.c b/libcext/estrdup.c @@ -0,0 +1,21 @@ +/* + * (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; +}