embtextf
20130407
Embedded System Text Formatting
|
embtextf is a collection of functions supporting *printf(3c) and numeric formatting functionality on embedded devices with highly constrained memory. It derives from functions originally provided in msp430-libc from the MSPGCC project.
Features include:
int
and long
values into a caller-provided buffer in any radix from base 2 to base 36;The conversions operate on native C types, abstracting away from word size and byte order. The module has been tested on both 16- and 32-bit microcontrollers.
Each provided function is prefixed with embtextf_
to isolate it from both the toolchain and application namespaces. This allows embtextf to co-exist with toolchains like mspgcc, which provide the same functionality in a compatible way, and others like Code Composer Studio or toolchains using newlib which provide similarly named functions with different semantics, interfaces, or memory expectations. The application program can use the preprocessor to redirect unqualified names to the embtextf implementations.
For installation instructions see Installation and Use.
The project page is at http://github.com/pabigot/embtextf. Releases can be obtained by cloning the git repository:
or by downloading a tar file of the complete source.
Please file support requests and bug reports on the issue tracker.