mirror of
https://github.com/0intro/wmii
synced 2024-11-27 00:00:36 +03:00
22 lines
334 B
C
22 lines
334 B
C
/*
|
|
* (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;
|
|
}
|