MicrOS
|
#include <stdarg.h>
#include "../stdlib.h"
#include "../string.h"
#include "../math.h"
#include "../stdio.h"
Macros | |
#define | FLAGS_ZEROPAD (1U << 0U) |
#define | FLAGS_LEFT (1U << 1U) |
#define | FLAGS_PLUS (1U << 2U) |
#define | FLAGS_SPACE (1U << 3U) |
#define | FLAGS_HASH (1U << 4U) |
#define | FLAGS_UPPERCASE (1U << 5U) |
#define | FLAGS_CHAR (1U << 6U) |
#define | FLAGS_SHORT (1U << 7U) |
#define | FLAGS_LONG (1U << 8U) |
#define | FLAGS_LONG_LONG (1U << 9U) |
#define | FLAGS_PRECISION (1U << 10U) |
#define | FLAGS_LONG_DOUBLE (1U << 11U) |
Typedefs | |
typedef long long int | i64 |
typedef unsigned long long int | u64 |
Functions | |
bool | _is_digit (char c) |
int | _max (int a, int b) |
unsigned int | _unsigned_number_len (u64 n, int base) |
unsigned int | _fnumber_len (long double n) |
char * | _itoa (u64 number, char *buffer, int base, bool uppercase, int size) |
char * | _ftoa (long double number, char *buffer, unsigned short flags, int precision) |
void | _put_unsigned_integer (FILE *stream, unsigned int *put_idx, u64 number, unsigned short flags, int base, int width, int precision) |
void | _put_signed_integer (FILE *stream, unsigned int *put_idx, i64 number, unsigned short flags, int base, int width, int precision) |
void | _put_float (FILE *stream, unsigned int *put_idx, long double number, unsigned short flags, int width, int precision) |
void | _put_scientific_notation (FILE *stream, unsigned int *put_idx, long double number, unsigned short flags, int width, int precision) |
unsigned int | _parse_number_field (const char **str) |
int | vfprintf (FILE *stream, const char *format, va_list arg) |
Print formatted data from variable argument list to stream. More... | |
#define FLAGS_CHAR (1U << 6U) |
#define FLAGS_HASH (1U << 4U) |
#define FLAGS_LEFT (1U << 1U) |
#define FLAGS_LONG (1U << 8U) |
#define FLAGS_LONG_DOUBLE (1U << 11U) |
#define FLAGS_LONG_LONG (1U << 9U) |
#define FLAGS_PLUS (1U << 2U) |
#define FLAGS_PRECISION (1U << 10U) |
#define FLAGS_SHORT (1U << 7U) |
#define FLAGS_SPACE (1U << 3U) |
#define FLAGS_UPPERCASE (1U << 5U) |
#define FLAGS_ZEROPAD (1U << 0U) |
typedef long long int i64 |
typedef unsigned long long int u64 |
unsigned int _fnumber_len | ( | long double | n | ) |
char* _ftoa | ( | long double | number, |
char * | buffer, | ||
unsigned short | flags, | ||
int | precision | ||
) |
bool _is_digit | ( | char | c | ) |
char* _itoa | ( | u64 | number, |
char * | buffer, | ||
int | base, | ||
bool | uppercase, | ||
int | size | ||
) |
int _max | ( | int | a, |
int | b | ||
) |
unsigned int _parse_number_field | ( | const char ** | str | ) |
void _put_float | ( | FILE * | stream, |
unsigned int * | put_idx, | ||
long double | number, | ||
unsigned short | flags, | ||
int | width, | ||
int | precision | ||
) |
void _put_scientific_notation | ( | FILE * | stream, |
unsigned int * | put_idx, | ||
long double | number, | ||
unsigned short | flags, | ||
int | width, | ||
int | precision | ||
) |
void _put_signed_integer | ( | FILE * | stream, |
unsigned int * | put_idx, | ||
i64 | number, | ||
unsigned short | flags, | ||
int | base, | ||
int | width, | ||
int | precision | ||
) |
void _put_unsigned_integer | ( | FILE * | stream, |
unsigned int * | put_idx, | ||
u64 | number, | ||
unsigned short | flags, | ||
int | base, | ||
int | width, | ||
int | precision | ||
) |
unsigned int _unsigned_number_len | ( | u64 | n, |
int | base | ||
) |
int vfprintf | ( | FILE * | stream, |
const char * | format, | ||
va_list | arg | ||
) |
Print formatted data from variable argument list to stream.
Writes the C string pointed by format to the stream. If format includes format specifiers (subsequences beginning with %), the additional arguments stored in arg list are formatted and inserted in the resulting string replacing their respective specifiers.
stream | Pointer to a FILE object that identifies an output stream. |
format | C string that contains the text to be written to the stream.Can contain embedded format specifiers. |
arg | A value identifying a variable arguments list initialized with va_start. |