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