Skip to content

Repository files navigation

Project Overview

The ft_printf project requires to build the printf function from scratch. This function is a core component in C programming, used for formatted output. By reimplementing it, students gain hands-on experience with variadic arguments, advanced string handling, and robust error checking.

Key Features

Variadic Functions: Use of stdarg.h to manage variable-length argument lists. Format Specifiers: Support for standard printf format specifiers like %d, %s, %x, %p, and more. Error Handling: Comprehensive checks to ensure correct behavior and robustness. Custom Functionality: Additional customizations and format specifiers to enhance flexibility and utility. Performance Considerations: Focus on efficient processing and reduced memory overhead.

Getting Started

To clone this repository and build the ft_printf project:

git clone https://github.com/Geesama02/ft_printf.git
cd ft_printf
make

The Makefile provided helps compile and test the custom ft_printf implementation. You can include this library in other projects for formatted output in C.

Learning Objectives

Variadic Arguments: Understanding and working with functions that take a variable number of arguments. String Formatting: Implementing complex string formatting logic based on format specifiers. Error Checking: Ensuring robust behavior with extensive error handling and validation. Code Structure: Developing modular, maintainable, and extensible code.

About

ft_printf project, part of the curriculum at 42 Network. This project involves implementing a custom version of the C printf function,

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages