Signed integer conversions | |
unsigned | fmt_snumw (char *buffer, long num, unsigned width, char pad, unsigned base, const char *digits) |
unsigned | fmt_sdec (char *buffer, long num) |
unsigned | fmt_sdecw (char *buffer, long num, unsigned width, char pad) |
Signed long long integer conversions | |
unsigned | fmt_sllnumw (char *buffer, long long num, unsigned width, char pad, unsigned base, const char *digits) |
unsigned | fmt_slldec (char *buffer, long long num) |
unsigned | fmt_slldecw (char *buffer, long long num, unsigned width, char pad) |
Unsigned integer conversions | |
unsigned | fmt_unumw (char *buffer, unsigned long num, unsigned width, char pad, unsigned base, const char *digits) |
unsigned | fmt_udec (char *buffer, unsigned long num) |
unsigned | fmt_udecw (char *buffer, unsigned long num, unsigned width, char pad) |
unsigned | fmt_uhex (char *buffer, unsigned long num) |
unsigned | fmt_uhexw (char *buffer, unsigned long num, unsigned width, char pad) |
unsigned | fmt_uHex (char *buffer, unsigned long num) |
unsigned | fmt_uHexw (char *buffer, unsigned long num, unsigned width, char pad) |
Unsigned long long integer conversions | |
unsigned | fmt_ullnumw (char *buffer, unsigned long long num, unsigned width, char pad, unsigned base, const char *digits) |
unsigned | fmt_ulldec (char *buffer, unsigned long long num) |
unsigned | fmt_ulldecw (char *buffer, unsigned long long num, unsigned width, char pad) |
unsigned | fmt_ullhex (char *buffer, unsigned long long num) |
unsigned | fmt_ullhexw (char *buffer, unsigned long long num, unsigned width, char pad) |
unsigned | fmt_ullHex (char *buffer, unsigned long long num) |
unsigned | fmt_ullHexw (char *buffer, unsigned long long num, unsigned width, char pad) |
Defines | |
#define | FMT_ULONG_LEN 40 |
Functions | |
unsigned | fmt_pad (char *buffer, unsigned width, char pad) |
unsigned | fmt_sign_pad (char *buffer, int sign, unsigned width, char pad) |
Variables | |
const char | fmt_lcase_digits [36] = "0123456789abcdefghijklmnopqrstuvwxyz" |
const char | fmt_lcase_digits [36] |
const char | fmt_ucase_digits [36] |
fmt_
: Always presents
: Signed integer (long)u
: Unsigned integer (long)sll
: Signed long long integerull
: Unsigned long long integernum
: Generic numberdec
: Decimalhex
: Hexadecimal (lower case)Hex
: Hexadecimal (upper case)w
: (optional) Pad out the result to a minimum width
For example, fmt_sdecw
formats a signed integer using decimal with width padding.
buffer
, is dependant on which function is being used.
buffer
: The character string into which to put the data result. If this is NULL
, no data is written, and only the length is calculated. This is useful for determining how long a formatted string might be.number
or data
: The input data item to convert.width
: The minimum output width.pad
: The character with which to pad the output.base
: The numerical base to use.digits
: The array of digits to use.
|
The maximum space used by a formatted number.
This value is long enough for 2^128 plus a trailing |
|
Format a pad character.
|
|
Format a signed integer as decimal.
|
|
Format a signed integer as decimal with padding.
|
|
Format padding for a signed number.
|
|
Format a signed long long integer as decimal.
|
|
Format a signed long long integer as decimal with padding.
|
|
Format a signed long long integer of arbitrary base with optional padding.
|
|
Format a signed integer of arbitrary base with optional padding.
|
|
Format an unsigned integer as decimal.
|
|
Format an unsigned integer as decimal with padding.
|
|
Format an unsigned integer as (upper-case) hexadecimal.
|
|
Format an unsigned integer as (lower-case) hexadecimal.
|
|
Format an unsigned integer as (upper-case) hexadecimal with padding.
|
|
Format an unsigned integer as (lower-case) hexadecimal with padding.
|
|
Format an unsigned long long integer as decimal.
|
|
Format an unsigned long long integer as decimal with padding.
|
|
Format an unsigned long long integer as (upper-case) hexadecimal.
|
|
Format an unsigned long long integer as hexadecimal.
|
|
Format an unsigned long long integer as (upper-case) hexadecimal with padding.
|
|
Format an unsigned long long integer as hexadecimal with padding.
|
|
Format an unsigned long long integer of arbitrary base with optional padding.
|
|
Format an unsigned integer of arbitrary base with optional padding.
|
|
Array of digits for lower-case conversions.
|
|
Array of digits for lower-case conversions.
|
|
Array of digits for upper-case conversions.
|