- Notifications
You must be signed in to change notification settings - Fork1
This project implements a custom function, ft_printf, that mimics the behavior of the standard C library function printf. ft_printf takes a format string and optional arguments, formats the output based on specifiers within the format string, and prints the result.
MarkosComK/42-Printf
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Development repo for 42cursus ft_printf project
This is a project in daily use. If you want to see the project that i have been evaluated in 42school click in releases at the right side!
_The aim of this project is to code a printf() function that will behave as close as possible from the original printf() from <stdio.h>
For detailed information, refer to thesubject of the project
🚀 This project consists of recode the usetul printf() from <stdio.h>- Supported conversions %: c, s, p, i, d, u, x, X
- Supported flags: # + (space)
- Supported options: - 0 . width
The function is written in C language and thus needs thegcc compiler and some standardC libraries to run.
make to compile.
For example, let's create amain.c file.
// Include the header#include"ft_printf.h"intmain(void){// Call the functionft_printf("Testing ft_printf!");return (0);}
Compile themain.c file with the ft_printf library and run the program:
cc main.c libftprintf.a&& ./a.outOutput should be:
Testing ft_printf!++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>.>---.++++++++++++.++.++++++.--.<<++.>>------.------------.+++++++++++++.<<.>>++++++.------------.-------. +++++++++++++++++++.<<.>>----------------.+++++.+++++++++.-------------.--.+ ++++++++++++++++.--------.+++++++++++++.<<.>>-----------------------.+++.+++ ++++.---.----.+++++++++++++++++.-----------------.-.<<.>>+++++.+++++.<<.>-------...
About
This project implements a custom function, ft_printf, that mimics the behavior of the standard C library function printf. ft_printf takes a format string and optional arguments, formats the output based on specifiers within the format string, and prints the result.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Contributors2
Uh oh!
There was an error while loading.Please reload this page.

