aewl

diff util.c @ 63:f14858218641

searching for a better way to discard enter notifies
author Anselm R. Garbe <garbeam@wmii.de>
date Fri, 14 Jul 2006 13:03:53 +0200
parents 466591c2f967
children 50450aa24a46
line diff
     1.1 --- a/util.c	Fri Jul 14 12:11:24 2006 +0200
     1.2 +++ b/util.c	Fri Jul 14 13:03:53 2006 +0200
     1.3 @@ -6,7 +6,6 @@
     1.4  #include <stdarg.h>
     1.5  #include <stdio.h>
     1.6  #include <stdlib.h>
     1.7 -#include <string.h>
     1.8  #include <sys/types.h>
     1.9  #include <sys/wait.h>
    1.10  #include <unistd.h>
    1.11 @@ -39,33 +38,6 @@
    1.12  	return res;
    1.13  }
    1.14  
    1.15 -void *
    1.16 -emalloc(unsigned int size)
    1.17 -{
    1.18 -	void *res = malloc(size);
    1.19 -	if(!res)
    1.20 -		bad_malloc(size);
    1.21 -	return res;
    1.22 -}
    1.23 -
    1.24 -void *
    1.25 -erealloc(void *ptr, unsigned int size)
    1.26 -{
    1.27 -	void *res = realloc(ptr, size);
    1.28 -	if(!res)
    1.29 -		bad_malloc(size);
    1.30 -	return res;
    1.31 -}
    1.32 -
    1.33 -char *
    1.34 -estrdup(const char *str)
    1.35 -{
    1.36 -	char *res = strdup(str);
    1.37 -	if(!res)
    1.38 -		bad_malloc(strlen(str));
    1.39 -	return res;
    1.40 -}
    1.41 -
    1.42  void
    1.43  swap(void **p1, void **p2)
    1.44  {