주의점
- 0, int의 최솟값은 따로 처리해주자.
- 숫자가 아닌 것들은 전부 0을 반환한다.
문제
c
Assignment name : ft_atoi
Expected files : ft_atoi.c
Allowed functions: None
--------------------------------------------------------------------------------
Write a function that converts the string argument str to an integer (type int)
and returns it.
It works much like the standard atoi(const char *str) function, see the man.
Your function must be declared as follows:
int ft_atoi(const char *str);