This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088

Dependents:   MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers NyLPC_cFormatWriter.h Source File

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_ */