-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_itoa.c
22 lines (19 loc) · 1020 Bytes
/
ft_itoa.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_itoa.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: fokrober <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/18 23:11:58 by fokrober #+# #+# */
/* Updated: 2019/04/23 17:47:18 by fokrober ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_itoa(int n)
{
char *s;
if (!(s = ft_strnew(0)))
return (NULL);
return (ft_push_nbr(s, n));
}