|
libcfe
0.12.1
some useful C-functions
|
#include <stdlib.h>#include <stdint.h>Go to the source code of this file.
Functions | |
| size_t | int_to_char (long long i, char **s, unsigned int min_len, uint8_t base) |
| size_t | int_to_char_with_decimal (long long i, char **s, uint8_t num) |
| size_t int_to_char | ( | long long | i, |
| char ** | s, | ||
| unsigned int | min_len, | ||
| uint8_t | base | ||
| ) |
Turn an integer into a serie characters.
| [in] | i | The number that needs to be printed. |
| [out] | s | Must be a NULL pointer. |
| [in] | min_len | Minimum length of the string, the resulting string will be left filled with zero's. |
| [in] | base | The base number (binary -> 2, octal -> 8, decimal -> 10, hexadecimal -> 16), this must not be bigger than 16. |
Definition at line 12 of file int_to_char.c.
| size_t int_to_char_with_decimal | ( | long long | i, |
| char ** | s, | ||
| uint8_t | num | ||
| ) |
Turn an integer into a serie characters and put a point (decimal separator) in it.
| [in] | i | The number that needs to be printed. |
| [out] | s | Must be a NULL pointer. |
| [in] | num | The number of digits after which the point will be placed, right counted. |
Definition at line 36 of file int_to_char.c.