Skip to content
/ printf Public

This repository contains Epitech C Project (Class 2023).

License

Notifications You must be signed in to change notification settings

sheiiva/printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PRINTF

Time: 3 weeks

Team: 1

Language: C

The project

You must recode the printf function from the C library according to the C99 standard. Your function should be prototyped like the printf function.

You do not have to implement the C library printf buffer handling.

You must process all printf formating flags except the following (which are optional):

  • float or double types management
  • %n flag management
  • "*" , "" and "I" (capital i) flags management

You must add a %b formating flag, which prints unsigned numbers in a binary base.

You must also add a %S formating flag, which prints a character string (like %s). However, non-printable characters (ASCII value strictly smaller than 32 or greater or equal than 127) must be represented by a backslash to be followed by the character’s value in octal base.

AUTHORIZED FUNCTIONS

The only system calls allowed are the following ones:

  • write
  • malloc
  • free

USAGE:

printf is compiled in the libmyprintf.a library and is formated as int my_printf(const char *format, ...)

TESTS:

>> make tests_run

Author Corentin COUTRET-ROZET

About

This repository contains Epitech C Project (Class 2023).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published