Skip to content

ayeshamk23/ft_printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–¨οΈ ft_printf

A custom implementation of the standard printf function in C.

πŸ“Œ Description

ft_printf is a 42 School project that re-implements the core functionality of the C printf function from scratch. It supports formatted output with various specifiers, flags, field widths, and precision. The goal is to understand variadic functions, string formatting, and low-level output control β€” all without using the standard printf.

βš™οΈ Features

  • Supports format specifiers: %c, %s, %d, %i, %u, %x, %X, %p, %%
  • Handles flags like -, 0, width, and precision
  • Parses and formats arguments using variadic functions (stdarg.h)
  • Prints to standard output using write()

πŸš€ Getting Started

πŸ”§ Compilation

make
#include "ft_printf.h"

int main(void)
{
	ft_printf("Hello, %s! You scored %d/100.\n", "Ayesha", 95);
	return 0;
}

About

ft_printf is a custom implementation of the C printf function. It handles formatted output, supports multiple specifiers, and improves understanding of variadic functions and string manipulation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors