This project is pretty straightforward, you have to recode printf. You will learn what is and how to implement variadic functions. Once you validate it, you will reuse this function in your future projects.

ft_printf 100/100
100/100

Introduction to ft_printf

This is the third project in the 1337 Curriculum #42network . This project is pretty straight forward, recode the printf function. The versatility of the printf function in C represents a great exercise in programming for us. This project is of moderate difficulty. It will enable you to discover variadic functions in C. The key to a successful ft_printf is a well-structured and good extensible code.

Prototype

int ft_printf(const char *, ...);

Description

Write a library that contains ft_printf, a function that will mimic the real printf.

External functs.

malloc, free, write, va_start, va_arg, va_copy, va_end

See the subjects for further information

SUBJECT


đź“‘ Mandatory part

  • It must not do the buffer management like the real printf.
  • It will manage the following conversions: cspdiuxX%.
  • It will be compared with the real printf.
  • %c print a single character.
  • %s print a string of characters.
  • %p The void * pointer argument is printed in hexadecimal.
  • %d print a decimal (base 10) number.
  • %i print an integer in base 10.
  • %u print an unsigned decimal (base 10) number.
  • %x print a number in hexadecimal (base 16), with lowercase.
  • %X print a number in hexadecimal (base 16), with uppercase.
  • %% print a percent sign.

Owner
Zakaria Yacoubi
1337 student | Devops | AKA UNIX MONINUX , YOPI
Zakaria Yacoubi
Similar Resources

Reimplementation of some of the Standard C Library functions.

Reimplementation of some of the Standard C Library functions.

42-libft Reimplementation of some of the Standard C Library functions. This repository contains some of the standard library C functions. List of avai

Sep 29, 2022

A thread-safe, easy-to-use, utility for sending and receiving notifications. It allows you to decouple different modules of your application.

NotificationManager NotificationManager is a thread-safe, easy-to-use utility for sending and receiving notifications. It allows you to decouple diffe

Dec 27, 2021

libcu++: The C++ Standard Library for Your Entire System

libcu++, the NVIDIA C++ Standard Library, is the C++ Standard Library for your entire system. It provides a heterogeneous implementation of the C++ Standard Library that can be used in and between CPU and GPU code.

Jan 2, 2023

Your standard library for metaprogramming

Boost.Hana Your standard library for metaprogramming Overview #include boost/hana.hpp #include cassert #include string namespace hana = boost::h

Jan 8, 2023

A template C project using CMAKE, logging library and basic memory handling.

C Project template Aim of this Repository is to create a template repository for C executable projects with following properties: Cmake project Loggin

May 23, 2022

FSD-Template - A template UE4.25 project for BP modding.

FSD-Template Project generated by Archengius' UE4 Template Generator. Reflected C++ classes generated by CheatingMuppet & Archengius' UE4SS UHT Genera

Dec 29, 2022

Archive Extension Loader is a Cyberpunk 2077 mod that allows you to expand game resources that are currently not suitable for modifications without conflicts.

ArchiveXL Archive Extension Loader allows you to expand game resources that are currently not suitable for modifications without conflicts. Installati

Nov 21, 2022

this lib with 26 template container and 10 kinds of algorithm, it is a good lib for study and usage

simple stl this lib simplify the achievement detail of common container, but add the container variety, the whole code partily follow Google Style. Em

Mar 10, 2022

Quick and dirty templating and docs generation.

Rader Quick and dirty templating and docs generation. Rader is a pre-processing (or post-processing) utility written in portable C++ 20 (only using st

Dec 19, 2021
FT_PRINTF is a 42 project that will allow me to remake the printf function (included in ) to be able to reuse it in my next projects.

FT_PRINTF FT_PRINTF is a 42 project that will allow me to remake the printf function (included in <stdio.h>) to be able to reuse it in my next project

Nov 15, 2022
42 Cursus - Libft: My implementation of some useful C functions and some additional ones to use it in future projects of 42.

42 Cursus - libft Info My implementation of some useful C functions and some additional ones to use it in future projects of 42. Status: still updatin

Jul 21, 2022
This project is a copy of the original printf function of C langage.
This project is a copy of the original printf function of C langage.

ft_printf This project is a copy of the original printf function of C langage. Ft_printf (42cursus) 2021-2022 Actual Status : finished. Result : 100%

Dec 11, 2021
An open source standard C library that includes useful functions && (Reimplementation of libc functions + own functions).
An open source standard C library that includes useful functions && (Reimplementation of libc functions + own functions).

?? LIBFT-42 : Artistic view of LIBC: ?? HOW DOES IT FEEL HAVING YOUR OWN LIB: SUBJECT : ENGLISH PDF ℹ️ What is LIBFT : This project aims to code a C l

Nov 4, 2022
Libft is an individual project at 42 that requires us to re-create some standard C library functions including some additional ones that can be used later to build a library of useful functions for the rest of the program.

?? Index What is Libft? List of Functions Technologies ✨ What is Libft? Libft is an individual project at 42 that requires us to re-create some standa

Jan 17, 2022
This project aims to recreate the behaviour of the original MacOS's printf
This project aims to recreate the behaviour of the original MacOS's printf

The printf function is one of the most versatile and well-known functions in the C language. From a testing aid to tabulation method, printf is a very powerful and important tool in every dev's kit. This project aims to recreate the behaviour of the original MacOS's printf, including its basic error management, some of its flags, minimum field width stipulation and most of its basic conversions.

Feb 15, 2022
Ce projet est clair et efficace. Vous devez recoder printf.

Ce projet est clair et efficace. Vous devez recoder printf. Avec un peu de chance, vous serez en mesure de le réutiliser dans des projets futurs sans la crainte d’être considéré comme un tricheur. Vous apprendrez principalement à utiliser les arguments variadiques.

Jul 23, 2022
This is the template for peripheral projects using nRF5 SDK

NRF5_SDK template project About This is the template for peripheral projects using nRF5 SDK Getting Started To get a local copy up and running follow

Nov 27, 2021
Empty STM32CubeMX Makefile Projects
Empty STM32CubeMX Makefile Projects

STM32CubeMX Empty Makefile Projects This repository provides empty Makefile-based projects created with STM32CubeMX. To prevent code duplication, the

Nov 7, 2021
Improved and configurable drop-in replacement to std::function that supports move only types, multiple overloads and more

fu2::function an improved drop-in replacement to std::function Provides improved implementations of std::function: copyable fu2::function move-only fu

Dec 12, 2022