|  | 
										tgrekov-ft_printf
									 
										HIVE printf Feb 2024
									 | 
Definition in file ft_atoi.c.
#include "libft.h"Go to the source code of this file.
| Functions | |
| int | ft_atoi (const char *str) | 
| Converts ASCII string strto integer representation. | |
| int ft_atoi | ( | const char * | str | ) | 
Converts ASCII string str to integer representation. 
Converts the initial numerical portion of the string at pointer str to int representation.
Numerical portion may be preceded by a singular optional + or - sign.
| [in] | str | Null-terminated string containing integer | 
| int | Result of conversion, unless the value (handled as a long during conversion), would overflow or underflow, in which case it returns FT_LONG_MAX or FT_LONG_MAX - 1, respectively. | 
Definition at line 42 of file ft_atoi.c.
References ft_isdigit(), and FT_LONG_MAX.