stdio.h 533 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include <types/stdint.h>
  3. #ifndef CR
  4. #define CR ('\r')
  5. #endif
  6. #ifndef LF
  7. #define LF ('\n')
  8. #endif
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. void* memcpy(void* dst, const void* src, size_t n);
  13. void* memset(void* dst, int c, size_t n);
  14. size_t strlen(const char* str);
  15. char* strncpy(char* dst, const char* src, size_t max_n);
  16. ssize_t
  17. snprint_decimal(
  18. char* buf,
  19. size_t buf_size,
  20. int32_t num);
  21. ssize_t
  22. snprintf(
  23. char* buf,
  24. size_t buf_size,
  25. const char* fmt,
  26. ...);
  27. #ifdef __cplusplus
  28. }
  29. #endif