blob: ebfe92bf8f4e649ccabcd9d8a425a72034a0ee21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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);
|