The goal of this project is to recreate the behavior of the printf function from the C standard library.
ft_printf is a custom implementation of the printf function.
This project helps you better understand:
- variadic functions
- string parsing
- conversion handling
- number and base manipulation
%c: character%s: string%p: pointer%d/%i: signed integer%u: unsigned integer%x/%X: hexadecimal%%: percent character
makegcc main.c#include "ft_printf.h"
int main(void)
{
ft_printf("Hello %s\n", "42");
return (0);
}- C programming
- variadic functions (
stdarg.h) - parsing
- memory management
- basic data structures
- Makefile
Le but de ce projet est de recréer le comportement de la fonction printf de la bibliothèque standard en C.
ft_printf est une implémentation personnalisée de la fonction printf.
Ce projet permet de mieux comprendre :
- les fonctions variadiques
- le parsing de chaînes de caractères
- la gestion des conversions
- la manipulation de nombres et de bases
%c: caractère%s: chaîne de caractères%p: pointeur%d/%i: entier signé%u: entier non signé%x/%X: hexadécimal%%: caractère%
makegcc main.c #include "ft_printf.h"
int main(void)
{
ft_printf("Hello %s\n", "42");
return (0);
}- langage C
- fonctions variadiques (
stdarg.h) - parsing
- gestion mémoire
- structures de données simples
- Makefile