Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.35 KB

README.md

File metadata and controls

48 lines (38 loc) · 1.35 KB

printf

It is a clone of printf function built in C language it is a great project from the ALX internship.

Allowed functions and system calls

  • write (man 2 write)
  • malloc (man 3 malloc)
  • free (man 3 free)
  • va_start (man 3 va_start)
  • va_end (man 3 va_end)
  • va_copy (man 3 va_copy)
  • va_arg (man 3 va_arg)

Features

  • cproduces output according to a format %c , %s
  • Handling the conversion specifiers %d, %i
  • Handling the unsigned int argument is converted to binary %b
  • Handling the conversion prints an unsigned decimal integer %u
  • Handling the conversion prints an unsigned hexadecimal integer in lowercase %x
  • Using a local buffer of 1024 chars in order to call write as little as possible
  • Handling the prints of the string %s
  • Handling the comments (#)
  • Handling the prints of the pointer type data %p
  • Handling the prints of the reversed string %r
  • Handling the prints of the rot13'ed string %R

Run the project

Clone the project

  git clone https://github.com/MinaSamirSaad/printf.git

Go to the project directory

  cd printf

Using the function

you can use the function by write _printf() and start use it in c file

Authors