-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinteger2.c
More file actions
27 lines (23 loc) · 1.1 KB
/
integer2.c
File metadata and controls
27 lines (23 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* integer2.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abaur <abaur@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/11/06 10:42:08 by abaur #+# #+# */
/* Updated: 2019/11/06 11:05:13 by abaur ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
** allocates and returns a string representing the given integer.
*/
int ft_atoi(const char *str)
{
return (ft_atoi_base(str, "0123456789"));
}
char *ft_itoa(int n)
{
return (ft_itoa_base(n, "0123456789"));
}