blob: 2c9977c1a3204c6f8d7ec574e124aeb20c53746f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
Assignment name : ft_atoi
Expected files : ft_atoi.c
Allowed functions: None
--------------------------------------------------------------------------------
Écrire une fonction qui convertit une chaîne en un entier (type int) et le retourne.
Marche comme la fonction standard atoi(const char *str), voir le man.
La fonction doit être prototypée comme suit:
int ft_atoi(const char *str);
|