sszahinos / ft_printf

printf function replica

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ft_printf

This program is similar to the original printf function. It prints a string with and without arguments following this flags:

  • %c Prints a single character.
  • %s Prints a string (as defined by the common C convention).
  • %p The void * pointer argument has to be printed in hexadecimal format.
  • %d Prints a decimal (base 10) number.
  • %i Prints an integer in base 10.
  • %u Prints an unsigned decimal (base 10) number.
  • %x Prints a number in hexadecimal (base 16) lowercase format.
  • %X Prints a number in hexadecimal (base 16) uppercase format.
  • %% Prints a percent sign

For example: ft_printf("%d is a number", 123) OUTPUT> 123 is a number

About

printf function replica

License:MIT License


Languages

Language:C 83.6%Language:Makefile 16.4%