|
libft
|
Validates whether a string represents a valid long long integer.
More...
#include "ft_check.h"
Include dependency graph for ft_is_valid_integer.c:Functions | |
| bool | ft_is_valid_integer (const char *str) |
| Validates C-style signed integer string format. | |
| static bool | is_in_longlong_range (const char *str, bool negative) |
Checks if a numeric string fits within the long long range. | |
Validates whether a string represents a valid long long integer.
This module implements a utility function that determines whether a string is a valid signed decimal integer fitting within the long long range. It supports an optional '+' or '-' sign, followed by digits only.
The check is purely lexical and does not convert the string unless valid.