mirror of
https://github.com/0intro/wmii
synced 2025-03-18 20:53:53 +03:00
Dummy merge with head -r1418 to kill it
This commit is contained in:
commit
0668c1e29e
21
libcext/estrdup.c
Normal file
21
libcext/estrdup.c
Normal file
@ -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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user