joancruzz / printf

printf. project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:C 100.0%