-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprint_int.c
32 lines (28 loc) · 1.1 KB
/
print_int.c
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
28
29
30
31
32
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* print_int.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cyferrei <cyferrei@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/20 10:26:27 by cyferrei #+# #+# */
/* Updated: 2023/11/21 16:47:53 by cyferrei ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int print_int(int nb)
{
int len;
char *num;
len = 0;
num = ft_itoa(nb);
len = print_string(num);
free(num);
return (len);
}
/*int main(void)
{
int nb = -85;
printf("%d\n", print_int(nb));
return(0);
}*/