This project has been created as part of the 42 curriculum by almecani
ft_printf is a simplified reimplementation of the C standard library's printf() function. It formats and prints data according to format specifiers while returning the total number of characters written.
The goal is to implement ft_printf(). The function must, support the required format specifiers (c, s, p, d, i, u, x, X, %) and return the number of characters printed.
ALL ME
This implementation scans the format string one character at a time. When a % is found, the following character is checked to determine the format specifier. A dispatcher function (specifier_finder) calls the appropriate printing function for each supported type. Numbers are printed by processing their most significant digits first, while hexadecimal values are converted. The function keeps a running count of all printed characters and returns this total when finished.