stdio.h 491 B

123456789101112131415161718192021222324252627282930313233343536
  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. size_t strlen(const char* str);
  14. char* strncpy(char* dst, const char* src, size_t max_n);
  15. ssize_t
  16. snprint_decimal(
  17. char* buf,
  18. size_t buf_size,
  19. int32_t num);
  20. ssize_t
  21. snprintf(
  22. char* buf,
  23. size_t buf_size,
  24. const char* fmt,
  25. ...);
  26. #ifdef __cplusplus
  27. }
  28. #endif