Welcome to the custom printf project! In this project, we aim to implement a personalized version of the printf function in C. This project is an excellent opportunity to deepen your understanding of formatting, string manipulation, and memory management in the C programming language.
-
Clone the Repository:
git clone https://github.com/Chareeef/printf.git
-
Navigate to Project Directory:
cd printf
-
Compile the Code:
gcc -Wall -Werror -Wextra -pedantic *.c -o printf
To use our custom _printf function, include the provided header file in your C program:
#include "main.h"Then, you can use the _printf function just like the standard printf:
int main(void)
{
_printf("Hello, %s!\n", "World");
_printf("This is a number: %d\n", 42);
return 0;
}Our custom _printf currently supports the following format specifiers:
%sfor strings%cfor characters%dfor integers%ifor integers%ufor unsigned integers
Happy coding! If you have any questions or need assistance, don't hesitate to reach out.