Skip to content

Mar-Issah/printf

Repository files navigation

printf

In this project, we'll learn to work collaboratively using GitHub to create a printf function.

We are allowed to use these functions or macros only:

Description

The _printf() function produces output according to a format which is described below. This function write its output to the stdout, the standard output. Returns the count of printed characters when the function is successful The available convertion specifiers are:

%c: Prints a single character.

%s: Prints a string of characters.

%d: Prints integers.

%i: Prints integers.

%b: Prints the binary representation of an unsigned decimal.

%u: Prints unsigned integers

%x: Prints the hexadecial representation of an unsigned decimal in lowercase letters

%X:Prints the hexadecial representation of an unsigned decimal in uppercase letters

%r: Prints a reversed string

Compilation

Note

The code is compiles using: gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c

As a consequence, be careful not to push any c file containing a main function in the root directory of your project (you could have a test folder containing all your tests files including main functions)

You might want to look at the gcc flag -Wno-format when testing with your _printf and the standard printf

Authors:

Marsiya Issah

Odwori

Releases

No releases published

Packages

No packages published

Languages