xref: /DragonOS/kernel/src/common/stdio.h (revision 45b8371173b070028457f7ee64be33f68b4f9ada)
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, ...);