summaryrefslogtreecommitdiff
path: root/include/klibc/kstdio.h
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2024-09-22 13:28:15 -0400
committerRbb666 <[email protected]>2024-09-23 21:30:37 +0800
commitee5014d32f7b1ee61b6d00218e6b1ffa8770ae96 (patch)
treec2e614c9df0382828525ceb4d573758d87849f79 /include/klibc/kstdio.h
parent8a53e6d63947a0ee0c60da53d322c75e0f5048cc (diff)
[klibc] add kerrno.h
Diffstat (limited to 'include/klibc/kstdio.h')
-rw-r--r--include/klibc/kstdio.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/klibc/kstdio.h b/include/klibc/kstdio.h
new file mode 100644
index 0000000000..215e9a9245
--- /dev/null
+++ b/include/klibc/kstdio.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2006-2024, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date Author Notes
+ * 2024-09-22 Meco Man the first version
+ */
+
+#ifndef __RT_KSTDIO_H__
+#define __RT_KSTDIO_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int rt_vsprintf(char *dest, const char *format, va_list arg_ptr);
+int rt_vsnprintf(char *buf, rt_size_t size, const char *fmt, va_list args);
+int rt_sprintf(char *buf, const char *format, ...);
+int rt_snprintf(char *buf, rt_size_t size, const char *format, ...);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif