|
Libft
Custom implementation of core libc functions with additional utility helpers.
|
#include <stdlib.h>
Functions | |
| static size_t | get_len (size_t n) |
| Calculates the string length needed for a size_t number. | |
| static void | populate (size_t n, char *str, size_t i) |
| Recursively populates a string with digits from a size_t. | |
| char * | ft_zutoa (size_t n) |
| Converts a size_t to a string. | |
|
static |
Calculates the string length needed for a size_t number.
| n | Size_t number. |

|
static |
Recursively populates a string with digits from a size_t.
| n | Size_t number to convert. |
| str | Destination string. |
| i | Current index to write to. |

