Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef UTILS_H
- #define UTILS_H 1
- #include <stddef.h>
- /**
- * Get memory space and check, wheter I have it
- */
- void *
- xmalloc(size_t size);
- /**
- * reallocate space and check it
- */
- void *
- xrealloc(void * pointer, size_t size);
- /**
- * safe version of strcat
- */
- void
- cat(char **to, char * from);
- /**
- * safe version strcpy
- */
- void
- cpy(char **to, char * from);
- /**
- * Add "/" to pathname
- */
- void
- addslash(char * path);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment