stdio.hpp 602 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. void kmsg(const char* msg);
  29. #ifdef __cplusplus
  30. }
  31. #endif