aboutsummaryrefslogtreecommitdiff
path: root/ft_atoi.c
blob: aedf3b2b210a0239134a1e0aa2381871ccbc1667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ft_atoi.c                                          :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: cacharle <marvin@42.fr>                    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2019/10/07 09:46:16 by cacharle          #+#    #+#             */
/*   Updated: 2020/02/04 04:04:15 by cacharle         ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include "libft.h"

int			ft_atoi(const char *str)
{
	return ((int)ft_strtol(str, (char**)NULL, 10));
}