IO 更多...
宏定义 | |
#define | MSTR_IMP_SOURCES 1 |
函数 | |
static mstr_result_t | stdio_callback (void *, const byte_t *, usize_t) |
mstr_io_init (void *context, MStrIOCallback *obj, MStrIOWrite cb_write) | |
初始化IO的结构 | |
MSTR_EXPORT_API (MStrIOCallback *) | |
取得stdout的内部handler | |
mstr_ioformat (MStrIOCallback *io, const char *fmt, usize_t fmt_place,...) | |
格式化字符串到指定io | |
mstr_iovformat (MStrIOCallback *io, const char *fmt, usize_t fmt_place, va_list *ap_ptr) | |
格式化字符串到指定io | |
变量 | |
static MStrIOCallback | mstr_stdout |
stdout IO | |
IO
#define MSTR_IMP_SOURCES 1 |
MSTR_EXPORT_API | ( | MStrIOCallback * | ) |
取得stdout的内部handler
mstr_io_init | ( | void * | context, |
MStrIOCallback * | obj, | ||
MStrIOWrite | cb_write | ||
) |
初始化IO的结构
[in] | context | 上下文 |
[in,out] | obj | IO结构对象 |
[in] | cb_write | 写入数据callback, 不可留NULL |
mstr_ioformat | ( | MStrIOCallback * | io, |
const char * | fmt, | ||
usize_t | fmt_place, | ||
... | |||
) |
格式化字符串到指定io
[in,out] | io | IO |
[in] | fmt | 格式化串 |
[in] | fmt_place | 预期fmt中使用的参数数目. 最大不超过16(MFMT_PLACE_MAX_NUM) |
mstr_iovformat | ( | MStrIOCallback * | io, |
const char * | fmt, | ||
usize_t | fmt_place, | ||
va_list * | ap_ptr | ||
) |
格式化字符串到指定io
[in,out] | io | IO |
[in] | fmt | 格式化串 |
[in] | fmt_place | 预期fmt中使用的参数数目. 最大不超过16(MFMT_PLACE_MAX_NUM) |
[in] | ap_ptr | &ap |
|
static |
|
static |
stdout IO