Welcome to my ft_printf project! 🌟 ft_printf
is a custom implementation of the standard printf function in C. This project showcases the ability to handle various data types and format specifiers, enhancing skills in string formatting, memory management, and variadic functions. It is a fundamental step in mastering C programming and preparing for more complex projects.
- ft_printf: A custom implementation that mimics the standard printf function, supporting:
- Various format specifiers, including
%c
,%s
,%p
,%d
,%i
,%u
,%x
,%X
, and%%
. - Variadic Format Handling: Supports a variable number of arguments using variadic macros.
- Error Handling: Manages invalid input formats in a controlled way.
- Proper output to the standard output stream.
- Various format specifiers, including
To use ft_printf in your own projects, simply clone the repository and include the header file in your project:
To install ft_printf, follow these steps:
- Clone the repository:
git clone https://github.com/Abdalrhman-Olimat/ft_printf.git
- Navigate to the project directory:
cd ft_printf
- Compile the library:
make
To use ft_printf in your C programs, include the following line in your source files:
#include "ft_printf.h"
Example of using ft_printf:
int main() {
ft_printf("Hello, %s! Your score is %d.\n", "User", 42);
return 0;
}
Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request.
If you have any questions or suggestions, please reach out to me via or