00001 #ifndef _UTILS_H
00002 #define _UTILS_H
00003
00004 #include "race.h"
00005 #include "int_types.h"
00006 #include <sys/types.h>
00007 #include <stdio.h>
00008 #include <stdlib.h>
00009
00010 void *xmalloc (size_t size);
00011 void *xcalloc (size_t nelems, size_t size);
00012 void *xrealloc (void *ptr, size_t size);
00013 char *xstrdup (const char *a);
00014 char *xstrcat2 (const char *s1, const char *s2);
00015 int xstrcasecmp (const char *a, const char *b);
00016 int xstrncasecmp (const char *a, const char *b, size_t len);
00017 ssize_t fread_dyn (char **destp, size_t *n, FILE *stream);
00018 double get_time (void);
00019
00020 #endif