memutil.h 337 B

12345678910111213141516171819202122232425
  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. #define str_redup my_str_redup
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. void str_redup(char **, const char *);
  13. char *strldup(const char *, size_t);
  14. #ifdef __cplusplus
  15. }
  16. #endif
  17. #endif /* !_MEMUTIL_H */