stdio.h 573 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 n);
  16. int strcmp(const char* s1, const char* s2);
  17. ssize_t
  18. snprint_decimal(
  19. char* buf,
  20. size_t buf_size,
  21. int32_t num);
  22. ssize_t
  23. snprintf(
  24. char* buf,
  25. size_t buf_size,
  26. const char* fmt,
  27. ...);
  28. #ifdef __cplusplus
  29. }
  30. #endif