maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
ft_print_int.c
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* ft_print_int.c :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: rocky <rmikhayl@student.42london.com> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2024/01/07 15:47:43 by rocky #+# #+# */
9
/* Updated: 2024/01/07 15:47:43 by rocky ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
13
#include "
libft.h
"
14
15
int
ft_print_int
(
int
n)
16
{
17
int
len;
18
char
*num;
19
20
num =
ft_itoa
(n);
21
len =
ft_print_str
(num);
22
free(num);
23
return
(len);
24
}
ft_print_int
int ft_print_int(int n)
Definition
ft_print_int.c:15
libft.h
ft_print_str
int ft_print_str(char *str)
Definition
ft_print_str.c:15
ft_itoa
char * ft_itoa(int n)
Definition
ft_itoa.c:40
lib
libft
src
ft_print_int.c
Generated by
1.9.8