As developers, we often take printf() for granted. By coding a replicate of the function, this project offers insights into the specifiers conversion, string formatting, argument passing, function pointers...
- All your files should end with a new line
- Your code should use the Betty style
- No more than 5 functions per file
- Global variables are not allowed
- The prototypes of all your functions should be included in your header file called main.h
- All your files will be compiled on Ubuntu 20.04 LTS using gcc
Specifiers | Description | Function name |
---|---|---|
c | print a character | _printcharacter |
s | print a string | _printstring |
% | print a % | _printpercent |
i | print an integer | _printnumbers |
d | print a deciman | _printnumbers |
This project can be compiled using a standard C compiler. You can use this command :
gcc -Wall -Werror -Wextra -pedantic -std=gnu89 -Wno-format *.c
man ./man_3_printf
_printf("Hello World!");
// print: Hello World!
_printf("%c is fun", C)
// print: C is fun
Copyright (c) 2023 Cassandre PERNELLE & Carmen Leila MUGISHA