This project implements a custom _printf function, mimicking the behavior of the standard C library printf function with a subset of format specifiers.
Support for multiple format specifiers Variable argument handling Robust error checking Lightweight implementation
%c: Character printing
%s: String printing
%%: Percent sign printing
%d: Decimal integer
%i: Integer
int _printf(const char *format, ...);
int _putchar(char c);
int print_char(va_list args);
int print_string(va_list args);
int print_integer(va_list args);
int print_percent(va_list args __attribute__((unused)));
## Key Components
Main `_printf` function
Helper print functions for each specifier
Variable argument list management
## Usage Examples
```c
_printf("Hello, %s!\n", "world");
_printf("Character: %c\n", 'A');
_printf("Integer: %d\n", 42);
_printf("Percent sign: %%\n"); Returns -1 if format string is NULL
Handles unrecognized specifiers by printing them literally
to install it you need to clone our repo : git clone ://github.com/georges479/holbertonschool-printf.git
gcc -Wall -Werror -Wextra -pedantic *.c -o printf
./printf.c
<stdarg.h>for variable argument handling Custom helpe1r functions: _putchar() print_char() print_string() print_integer() print_percent()`
Limited to specified format specifiers
No floating-point number support
Minimal error checking compared to standard printf
Add more format specifiers Implement width and precision modifiers Enhanced error handling Support for floating-point numbers
operating system : Ubuntu 20.04 Language : C Compiler : gcc 4.8.4 Style Guidelines : Betty
Georges Nils Lentz
The README provides a comprehensive overview of the custom `_printf` implementation, including its features, usage, compilation instructions, and potential areas for improvement. It serves as a guide for developers who want to understand or contribute to the project.
