-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_atol.c
20 lines (17 loc) · 1001 Bytes
/
ft_atol.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_atol.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: oadhesiv <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/25 13:44:31 by oadhesiv #+# #+# */
/* Updated: 2019/04/25 14:17:51 by oadhesiv ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
long ft_atol(const char *str)
{
char *endptr;
return (ft_strtol(str, &endptr, 10));
}