An implementation of the C printf
function, created as part of a programming project. This project provides custom functionality for formatted output, similar to the standard printf
.
- Supports various format specifiers:
%c
: Character%s
: String%p
: Pointer%d
/%i
: Integer%u
: Unsigned integer%x
/%X
: Hexadecimal (lowercase/uppercase)%%
: Percent symbol
- Handles basic formatting requirements with optimized performance.
ft_printf.c
: Contains the mainft_printf
function.ft_printf.h
: Header file with function declarations and macros.ft_hexptr.c
: Handles hexadecimal and pointer formatting.ft_parsing.c
: Parses the format string and arguments.ft_putnbr.c
: Prints numbers (signed and unsigned).ft_putstr.c
: Handles string output.Makefile
: Automates the build process.
- A C compiler (e.g.,
gcc
). make
installed on your system.
- Clone the repository:
git clone https://github.com/lwi00/ft_printf.git