Skip to content

MinaSamirSaad/printf

Repository files navigation

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

About

printf clone

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages