blob: d6fa5bba9ca0365eef56e589c8d3cabedb15c8f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_atoi.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/07 09:46:16 by cacharle #+# #+# */
/* Updated: 2020/01/15 10:56:06 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
** Convert a string to an int
*/
int ft_atoi(const char *str)
{
return ((int)ft_strtol(str, (char**)NULL, 10));
}
|