📄 vsprintf.c
字号:
#include <stdio.h>
#include <stdarg.h>
#include "_stdio.h"
static char *p;
#if defined(_HC12)
#pragma nonpaged_function _vsdepi
#endif
/* static */ /* workaround for AVR code compressor for > 128K bytes
func_lit entry must be a public symbol */
void _vsdepi(char c)
{
*p++ = c;
}
int vsprintf(char *buf, const char *fmt, va_list va)
{
p = buf;
_print(_vsdepi, fmt, va);
*p = 0;
return p - buf;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -