memutil.h 491 B

12345678910111213141516171819202122232425262728
  1. #ifndef _MEMUTIL_H
  2. #define _MEMUTIL_H
  3. #ifdef HAVE_CONFIG_H
  4. # include "config.h"
  5. #endif
  6. #include <sys/types.h>
  7. //#undef str_redup
  8. //#undef strdup
  9. #undef calloc
  10. #undef realloc
  11. #define str_redup my_str_redup
  12. #define strdup my_strdup
  13. //#define calloc my_calloc
  14. //#define realloc my_realloc
  15. void str_redup(char **, const char *);
  16. char *strdup(const char *);
  17. char *strldup(const char *, size_t);
  18. void *my_calloc(size_t, size_t);
  19. void *my_realloc(void *, size_t);
  20. #endif /* !_MEMUTIL_H */