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