This repository contains code developed at 42 Porto for ft_printf Project, from 16/11/22 to 30/11/22.
Click here for the subject of this project.File conversions: cspdiuxX%
ft_printf.c
ft_printf
- main function.
ft_printf_utils.c
check_argument
- verify argument (char, string, pointer, decimal, integer, unsigned decimal, hexadecimal and %).
ft_args_csp.c
ft_putchar_count
- char%c
.ft_putstr_count
- string%s
.ft_putptr_count
- pointer%p
.ft_ptrlen
- return pointer length.ft_putptr
- print pointer in hexadecimal.
ft_args_diu.c
ft_putnbr_count
- decimal%d
and integer%i
.ft_put_unsignedint_count
- unsigned decimal%u
.ft_numlen
- return unsigned int length.ft_uitoa
-ft_itoa
function for unsigned int.
ft_args_xXpercent.c
ft_puthex_count
- hexadecimal lowercase%x
and hexadecimal uppercase%X
.ft_hexlen
- return hexadecimal length.ft_puthex
- print hexadecimal.ft_putpercent
- percent%%
.
libft_functions.c
ft_putchar_fd
- outputs the character to the given file descriptor.ft_itoa
- allocates and returns a string representing the integer received as an argument.absolute_value
- aux function toft_itoa
.ft_digit_count
- aux function toft_itoa
.
This work is published under the terms of 42 Unlicense.