kstdio.h 1017 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * RT-Thread RuiChing
  3. *
  4. * COPYRIGHT (C) 2024-2025 Shanghai Real-Thread Electronic Technology Co., Ltd.
  5. * All rights reserved.
  6. *
  7. * The license and distribution terms for this file may be
  8. * found in the file LICENSE in this distribution.
  9. */
  10. #ifndef __KSTDIO_H__
  11. #define __KSTDIO_H__
  12. #include <rttypes.h>
  13. #include <stdarg.h>
  14. #include <kpi.h>
  15. typedef int (*__kpi_rt_vsprintf)(char *dest, const char *format, va_list arg_ptr);
  16. typedef int (*__kpi_rt_vsnprintf)(char *buf, rt_size_t size, const char *fmt, va_list args);
  17. typedef int (*__kpi_rt_sprintf)(char *buf, const char *format, ...);
  18. typedef int (*__kpi_rt_snprintf)(char *buf, rt_size_t size, const char *format, ...);
  19. typedef int (*__kpi_rt_vsscanf)(const char *buffer, const char *format, va_list ap);
  20. typedef int (*__kpi_rt_sscanf)(const char *str, const char *format, ...);
  21. KPI_EXTERN(rt_vsprintf);
  22. KPI_EXTERN(rt_vsnprintf);
  23. KPI_EXTERN(rt_sprintf);
  24. KPI_EXTERN(rt_snprintf);
  25. KPI_EXTERN(rt_vsscanf);
  26. KPI_EXTERN(rt_sscanf);
  27. #endif /* __KSTDIO_H__ */