Skip to content

The goal of this project is pretty straightforward. Recode printf().

License

Notifications You must be signed in to change notification settings

lbordonal/01-ft_printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains code developed at 42 Porto for ft_printf Project, from 16/11/22 to 30/11/22.

📓 Subject

Click here for the subject of this project.

⚡ Function Prototype

🏅 Mandatory Part

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 to ft_itoa.
  • ft_digit_count - aux function to ft_itoa.

📝 Tester




This work is published under the terms of 42 Unlicense.

About

The goal of this project is pretty straightforward. Recode printf().

Topics

Resources

License

Stars

Watchers

Forks