This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
Diff: core/NyLPC_cStr.h
- Revision:
- 2:b96c1e90d120
- Parent:
- 1:9f6a78395432
- Child:
- 48:00d211aac2ec
diff -r 9f6a78395432 -r b96c1e90d120 core/NyLPC_cStr.h --- a/core/NyLPC_cStr.h Mon Mar 25 05:23:49 2013 +0000 +++ b/core/NyLPC_cStr.h Wed Mar 27 12:07:47 2013 +0000 @@ -60,6 +60,11 @@ */ NyLPC_TBool NyLPC_cStr_put(NyLPC_TcStr_t* i_inst,NyLPC_TChar i_c); /** + * 残容量を返します。 + */ +#define NyLPC_cStr_capacity(i_inst) ((i_inst)->s-(i_inst)->l) + +/** 現在の長さを返します。 */ #define NyLPC_cStr_len(i_inst) ((i_inst)->l) @@ -86,4 +91,4 @@ } #endif /* __cplusplus */ -#endif /* NYLPC_CSTR_H_ */ +#endif /* NYLPC_CSTR_H_ */ \ No newline at end of file