|
Libft
Custom implementation of core libc functions with additional utility helpers.
|
#include <stdlib.h>
Functions | |
| static size_t | get_base_len (const char *base) |
| Calculates the length of a base string. | |
| static size_t | get_res_len (unsigned long n, size_t base_len) |
| Calculates the result string length for a number in a given base. | |
| char * | ft_ultoa_base (unsigned long n, const char *base) |
| Converts an unsigned long to a string in a given base. | |
|
static |
Calculates the length of a base string.
| base | Base string. |

|
static |
Calculates the result string length for a number in a given base.
| n | Number to convert. |
| base_len | Length of the base. |
