1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#ifndef __UTILS_H #define __UTILS_H #ifdef __cplusplus extern "C" { #endif #define MAX_ERROR_MSG_SIZE PATH_MAX extern void *xmalloc( size_t ); extern void *xrealloc( void *, size_t ); extern char *dupstr( char *s ); #ifdef __cplusplus } #endif #endif /* __UTILS_H */