strlcpy.h 389 B

12345678910111213141516171819202122232425
  1. #ifndef _STRLCPY_H
  2. #define _STRLCPY_H
  3. #ifdef HAVE_CONFIG_H
  4. # include "config.h"
  5. #endif
  6. #include <sys/types.h>
  7. //#undef strlcpy
  8. //#undef strlcat
  9. #define strlcpy my_strlcpy
  10. #define strlcat my_strlcat
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. size_t strlcpy(char *, const char *, size_t);
  15. size_t strlcat(char *, const char *, size_t);
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #endif /* !_STRLCPY_H */