![]() |
nRF5 SDK
v15.3.0
|
Choose documentation: | nRF5 SDK | S112 SoftDevice API | S132 SoftDevice API | S140 SoftDevice API | S212 SoftDevice API | S312 SoftDevice API | S332 SoftDevice API | S340 SoftDevice API |
This library writes a C string pointed by format to a defined output. It works like a standard fprintf C function with some limitations.
Supported format specifiers:
d
-> Signed decimal integer.i
-> Signed decimal integer.u
-> Unsigned decimal integer.x
-> Unsigned hexadecimal integer uppercase .X
-> Unsigned hexadecimal integer uppercase.c
-> Character.s
-> String of characters.p
-> Pointer address.%
-> Two following % will result in single % sent to the stream.*
-> Variable field width size - it shall be used together with the above format specifiers, for example: "%*s".Supported format flags:
-
-> Left justification.0
-> Left-pads the number with zeroes.+
-> Forces to display the result with a plus or minus sign.