|
Contiki 3.x
|
sprintf functions to replace newlib for AVR32 UC3. More...
#include <stdarg.h>#include <stdbool.h>#include <string.h>#include <mc1322x.h>#include <stdint.h>Go to the source code of this file.
Macros | |
| #define | _PRINTFMT_PAD_RIGHT 1 |
| Pad string to right. | |
| #define | _PRINTFMT_PAD_ZERO 2 |
| Pad the number with zeroes. | |
| #define | _PRINTFMT_INT_BUF_LEN 12 |
| The following should be enough for 32 bit int. | |
Functions | |
| static void | __print_char (_print_ctx_t *ctx, char c) |
| Print a character to stdout (if string is null) otherwise, put the character at the end of the provided string. | |
| static int | __print_str (_print_ctx_t *ctx, const char *string, int width, int pad, int print_limit, bool is_number) |
| Print a string to a given string. | |
| static int | __print_int (_print_ctx_t *ctx, int i, int b, int sg, int width, int pad, int letbase, int print_limit) |
| Print a number to the given string, with the given base. | |
| static int | __print_fmt (_print_ctx_t *ctx, const char *format, va_list args) |
| Print the given arguments, with given format onto string out. | |
sprintf functions to replace newlib for AVR32 UC3.
Created on : 17-mar-2009
Definition in file printf.c.
1.8.6