wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

estrdup.c (229B)


      1 /* Written by Kris Maglione <maglione.k at Gmail> */
      2 /* Public domain */
      3 #include <string.h>
      4 #include "util.h"
      5 
      6 char*
      7 estrdup(const char *str) {
      8 	void *ret = strdup(str);
      9 	if(!ret)
     10 		mfatal("strdup", strlen(str));
     11 	return ret;
     12 }