xref: /DragonOS/kernel/src/common/stdio.h (revision 182b778a3ca8c633b605ae7dd90a5e9f1131cc6d)
1 #pragma once
2 #include <stdarg.h>
3 #include <common/printk.h>
4 
5 #define	SEEK_SET	0	/* Seek relative to start-of-file */
6 #define	SEEK_CUR	1	/* Seek relative to current position */
7 #define	SEEK_END	2	/* Seek relative to end-of-file */
8 
9 #define SEEK_MAX	3
10 
11 extern int vsprintf(char *buf, const char *fmt, va_list args);
12 
13 extern int sprintk(char *buf, const char *fmt, ...);