Problem: At Hive Helsinki coding school students are not allowed to use the C library function printf !
Solution: Code your own printf function!
This is a simplified version of the C library function printf that can handle:
- csp conversions
- diouxX conversions with hh,h, l and ll length modifiers
- f conversion with l and L length modifiers
- e and g conversions
- b (binary) conversion (non-existent in real printf)
- %%
- #, 0, -, +, and space flags
- minimum field width
- precision
#include "printf.h"
int ft_printf(const char *format, ...);
Repository contains a Makefile for:
- compiling (make all)
- removing object files (make clean)
- deleting library file (make fclean)
- recompiling (make re)
This project is part of my studies at Hive Helsinki. It was tested by 3 fellow Hive students as well as an automated evaluation system.