|
libft
|
Number-to-string and string-to-number conversion functions. More...
#include "libft.h"
Include dependency graph for ft_number_conversion.c:Functions | |
| long long | ft_atoi (const char *str) |
| Converts a string to a signed integer. | |
| long long | ft_atoll (const char *str) |
Converts a string to a long long value. | |
| static size_t | ft_baselen (unsigned long long n, int base) |
| Calculates the number of digits to represent a value in a given base. | |
| static bool | ft_check_overflow (long long num, char digit, int sign) |
| Checks for overflow when converting a string to a long long integer. | |
| char * | ft_itoa (int n) |
| Converts an integer to a string. | |
| char * | ft_itoa_base (unsigned long long n, int base, int uppercase) |
| Converts an unsigned integer to a string in a given base. | |
| char * | ft_utoa (unsigned long long n) |
| Converts an unsigned long long to a decimal string. | |
Number-to-string and string-to-number conversion functions.
This file implements utility functions for converting between numeric types and their string representations, with overflow detection, base formatting, and both signed and unsigned variants.