Skip to content

joancruzz/printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

printf()

In this repo we recreate the printf() function.

Motivation

This is our first partner project for Holberton School - and our first time experiencing pair programming. Over the last two months we have been learning C basics. In this repo we bring everything we have learned together and recreate the printf() function.

How to Use?

_printf();
The character % is followed by zero or more of the following flags:

-i, -d:

The int argument is converted to signed decimal notation.

-c:

The int argument is converted to an unsigned char, and the resulting character is written.

-s:

The const char * argument is expected to be a pointer to an array of character type (pointer to a string).
Characters from the array are written up to (but not including) a terminating null byte ('\0').

Example:

_printf("String:[%s]\n", "I am a string !");

Result:

String:[I am a string !]

Contributers

Joan Cruz - follow on twitter @joancruzzzz
Andrew Cox - follow on twitter @AndrewC795

About

printf. project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages