Intel® Quark™ Microcontroller Software Interface 1.4.0 Intel® Quark™ Microcontroller BSP

- Main Page
- Modules
- Data Structures
- Files

Functions
Syscalls

newlib syscalls implementation More...

## Functions
int | pico_printf (const char *format,...)
| This is an minimally useful subset of the POSIX printf() function. More...

## Detailed Description

newlib syscalls implementation

## Function Documentation

int pico_printf | ( | const char * | format,
|  |  | ...
| ) |  |

This is an minimally useful subset of the POSIX printf() function.

To reduce code size, this pico_printf() implementation only supports a few conversion specifiers:

- 'd', 'u': for signed and unsigned decimal numbers, respectively;
- 'x', 'X': for hexadecimal numbers, downcase and upcase;
- 's': for NULL terminated strings.

Other limitations:

- No flag specifier is implemented;
- No field width specifier is implemented;
- The only supported length modifier is 'l', which is parsed and ignored, on supported archictetures 'int' and 'long int' are both 32 bits long.
- 32 digits maximum length for formatted numbers.

Definition at line 105 of file newlib-syscalls.c.