|
Turnstone Operating System
|
several utility functions implementation. More...
Functions | |
| MODULE ("turnstone.lib.utils") | |
| number_t | power (number_t base, number_t p) |
| power base with p | |
| int8_t | ito_base_with_buffer (char_t *buffer, number_t number, number_t base) |
| converts integer to string | |
| int8_t | uto_base_with_buffer (char_t *buffer, unumber_t number, number_t base) |
| converts unsigned integer to string | |
| int8_t | fto_base_with_buffer (char_t *buffer, float64_t number, number_t prec, number_t base) |
| converts float to string | |
| uint8_t | byte_count (const uint64_t num) |
| uint64_t | read_memio (uint64_t va, uint8_t size) |
| void | write_memio (uint64_t va, uint64_t val, uint8_t size) |
| boolean_t | isalpha (char_t c) |
| boolean_t | isdigit (char_t c) |
| boolean_t | isalnum (char_t c) |
| boolean_t | isxdigit (char_t c) |
| boolean_t | islower (char_t c) |
| boolean_t | isupper (char_t c) |
| boolean_t | isspace (char_t c) |
| boolean_t | isprint (char_t c) |
| boolean_t | isgraph (char_t c) |
| boolean_t | iscntrl (char_t c) |
| boolean_t | ispunct (char_t c) |
| boolean_t | isblank (char_t c) |
| boolean_t | isascii (char_t c) |
| boolean_t | isalnumw (char_t c) |
| const char_t * | randstr (uint32_t len) |
several utility functions implementation.
This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.
converts float to string
| [in] | buffer | destination buffer |
| [in] | number | to convert |
| [in] | base | to convert |
buffer should be enough to take data. it's malloc free
converts integer to string
| [in] | buffer | destination buffer |
| [in] | number | to convert |
| [in] | base | to convert |
buffer should be enough to take data. it's malloc free
power base with p
| [in] | base | the base |
| [in] | p | the power |