Skip to content

GarGrigoryan/ft_printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project has been created as part of the 42 curriculum by gargrigo.

ft_printf

Description

ft_printf is a custom implementation of the standard C printf() function from the C standard library.

The goal of this project is to recreate the behavior of printf() by handling formatted output and variable arguments using stdarg.h.

This project helps deepen understanding of:

  • Variadic functions (va_list, va_start, va_arg, va_end)

  • Format parsing

  • String and number manipulation

  • Low-level output using write()

Instructions

To compile the library, run:

make

This will create a static library file named libftprintf.a.

Usage

Include the header in your source code:

#include "ft_printf.h"

Compile your program with the library:

cc your_program_name.c -L. -lftprintf

Resources

Documentation

References

AI Usage

AI was used in the following parts of this project:

  • README.md creation: AI assistance was used to structure and write the README.md file according to 42 School requirements, including formatting and section organization.

All code implementations were written manually by the student, with AI used only for creating README.md file and understanding requirements.

About

ft_printf is a custom implementation of the standard C printf() function from the C standard library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors