Skip to content

Repository files navigation

printf

About

This project is about recreating the C library function printf. The function printf sends formatted output to stdout (standard output stream) by formatting the argument(s) passed in and converting the arguments(s) into a character string. This version will be used as _printf.

Our Files

FileDescription
holberton.hheader file with different prototypes
_printf.cprints the specified format c
print_numbers.cprintts an integer i,d
man_3_printfThe manpage
function.cIt prints out the characters
_putchar.cIt writes the character to stdout
_print_X.cprints a number in hexadecimal with uppercase X
_print_binary.cconverts decimal to base 2
_print_o.cconverts a decimal to base 8 o
_print_u.cconverts decimal to unsigned int u
_print_x.cprints a number in hexadecimal x

Conversion specifiers

All our conversion specifiers in the files

SpecifierReturns
creturns character
sreturns a string
i and dconverts int to signed decimal
oconverts a decimal to base 8
uconverts decimal to unsigned int
xconverts unsigned int into unsigned hexadecimal
%write '%'

How to use the code

Git clone

$ git clone https://github.com/merryta/printf.git

Author

JOHN KATUA - Github

MERON MAMO - Github

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages