_printf

_printf is a simple custom printf function that formats and prints data to the standard output.

Description

_printf() functiion formats and prints data to the standard output according to the format specified.

The function has the following conversion specifies:

  • %c - prints a character
  • %d - prints a integer
  • %s - prints a string
  • %i - prints an integer
  • % - prints percentage;
  • %b - print binary numbers
  • %u - print unsigned integers of type int
  • %x - print hexadecimal numbers in lowercase
  • %X - print hexadecimal numbers in uppercase
  • %o - print octal numbers
  • %r - prints string in reverse order
  • %R - prints string in ROT13 encoding
  • %p - print pointer addresses
  • ' ' - print a space
  • - modifier for unsigned conversions

  • +: prints a plus sign in front of the number

Copyright

Copyright (c) 2022 Aiman Mengesha Keti Yohanness