The versatility of the printf function in C represents a great exercise in programming for us. This project is of moderate difficulty. It will enable you to discover variadic functions in C.
The key to a successful ft_printf is a well-structured and good extensible code.
- Use git to clone this repository (the instructions will assume you've done this instead of clicked on "Download ZIP)
cd ft_printf
make
- Compile libftprintf.a with any source files you'd like. And execute the resulting executable i.e:
gcc libftprintf.a your_source_file.c -o execute_me && execute_me
The program handles the following flags, conversions and conversion specifiers:
- "cspdiuxX%" conversion specifiers
- "0-" flags
- Width and precision (including the '*' option)