Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libMiMic by
NyLPC_cFormatWriter.h
00001 #include "NyLPC_stdlib.h" 00002 #include <stdarg.h> 00003 #ifndef NYLPC_CFORMATTEXTWRITER_H_ 00004 #define NYLPC_CFORMATTEXTWRITER_H_ 00005 #ifdef __cplusplus 00006 extern "C" { 00007 #endif /* __cplusplus */ 00008 00009 00010 typedef NyLPC_TBool(*NyLPC_cFormatWriter_printHandler)(void* i_inst,const void* i_buf,NyLPC_TUInt32 i_len); 00011 /** 00012 * printfライクな書式出力関数です。i_handlerへi_fmtに示される書式文字列を出力します。 00013 * @param i_fmt 00014 * フォーマット文字列。以下の形式をサポートします。 00015 * %d int値 00016 * %u uint値 00017 * %c char値 00018 * %% '%' 00019 * %s,%.*s 文字列 00020 * 独自拡張 00021 * %.*B BYTE配列をXX形式で並べた文字列 00022 * 00023 */ 00024 NyLPC_TBool NyLPC_cFormatWriter_print(NyLPC_cFormatWriter_printHandler i_handler,void* i_inst,const NyLPC_TChar* i_fmt,va_list args); 00025 00026 /** 00027 * 書式文字列を出力した時のバイト長さを求めます。 00028 */ 00029 NyLPC_TInt16 NyLPC_cFormatWriter_length(const NyLPC_TChar* i_fmt,va_list args); 00030 00031 00032 #ifdef __cplusplus 00033 } 00034 #endif /* __cplusplus */ 00035 #endif /* NYLPC_CFORMATTEXTREADER_H_ */
Generated on Tue Jul 12 2022 16:22:57 by
