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
15int 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}
int ft_print_int(int n)
int ft_print_str(char *str)
char * ft_itoa(int n)
Definition ft_itoa.c:40