iconv.h 474 B

12345678910111213141516171819202122232425262728
  1. #ifndef _ICONV_H
  2. #define _ICONV_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #if __STDC_VERSION__ >= 199901L
  7. #define __restrict restrict
  8. #elif !defined(__GNUC__)
  9. #define __restrict
  10. #endif
  11. #define __NEED_size_t
  12. #include <bits/alltypes.h>
  13. typedef void *iconv_t;
  14. iconv_t iconv_open(const char *, const char *);
  15. size_t iconv(iconv_t, char **__restrict, size_t *__restrict, char **__restrict, size_t *__restrict);
  16. int iconv_close(iconv_t);
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif