mirror of
https://github.com/0intro/wmii
synced 2024-11-22 22:02:30 +03:00
21 lines
332 B
C
21 lines
332 B
C
/*
|
|
* (C)opyright MMIV-MMV 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;
|
|
}
|