Welcome to Printf! A personal reimplementation of the well-known printf function from the standard C library. If you're in need of a reliable and versatile printing function for your next C project, you're in the right spot!
📖 Contents
- Flexible Formatting: Supports common format specifiers such as
%c,%s,%p,%d,%i,%u,%x,%Xand%%. - Consistent Output: Ensures reliable and predictable results in line with the standard
printfbehavior. - Efficient Code: Optimized for performance without sacrificing readability or expandability.
Compilation:
- First, compile the required libraries:
makeThis will produce the necessary library files, including libftprintf.a.
- Compile your program with the
ft_printffunction:
gcc your_file.c -o your_program_name -L. -lftprintfInclude:
Just include the ft_printf.h header in your C project:
#include "ft_printf.h"- GCC or another C compiler.
makeutility.- Git (optional).
# Clone the repository
git clone https://github.com/Pablo-Palma/printf.git
# Navigate to the directory
cd printf
# Compile the library
make
# Compile your project with ft_printf
gcc your_project_file.c -o desired_output_name -L. -lftprintfAny questions, suggestions, or potential contributions? Don't hesitate to reach out!
- GitHub: Pablo-Palma
- Email: [email protected]
Happy coding! 👩💻👨💻