Mercurial > 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 wrap: on
line diff
--- a/util.c Fri Jul 14 12:11:24 2006 +0200 +++ b/util.c Fri Jul 14 13:03:53 2006 +0200 @@ -6,7 +6,6 @@ #include <stdarg.h> #include <stdio.h> #include <stdlib.h> -#include <string.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> @@ -39,33 +38,6 @@ return res; } -void * -emalloc(unsigned int size) -{ - void *res = malloc(size); - if(!res) - bad_malloc(size); - return res; -} - -void * -erealloc(void *ptr, unsigned int size) -{ - void *res = realloc(ptr, size); - if(!res) - bad_malloc(size); - return res; -} - -char * -estrdup(const char *str) -{ - char *res = strdup(str); - if(!res) - bad_malloc(strlen(str)); - return res; -} - void swap(void **p1, void **p2) {