/ft_printf

ft_printf is a custom C implementation of the printf function made at 42School. It offers versatile formatting and printing capabilities for various data types, making it a valuable learning tool for understanding string formatting in C.

Primary LanguageC


cover-ft_printf.png

Because putnbr() and putstr() are not enough…


Evaluation:

Screen Shot 2024-04-18 at 12.55.12 PM.png

Table of Contents

  1. What is ft_printf?
  2. What’s inside?
  3. How does it work?
  4. How to test ?
  5. Notes
  6. About Me
  7. License

What is ft_printf?


ft_printf is a custom implementation of the C standard library function printf in C. This project provides a versatile and extensible printf function that can be used to format and print various data types to the standard output. It offers a comprehensive set of format specifiers, allowing you to control the appearance of data in your C programs. Designed as a learning exercise, this printf implementation serves as a useful educational tool for understanding string formatting and variadic functions in C

What’s inside?


Functions Other
ft_printf.c Makefile
ft_putnbr_base.c ft_printf.h
ft_strlen.c
ft_putstr_fd.c
ft_putchar_fd.c

How does it work?


  1. Clona este repositorio y entra en él, asegúrate de que se llama:
git clone <https://github.com/VolmerES/ft_printf.git>
cd ft_printf/
  1. Ejecuta Make para que puedas construir la biblioteca:
make

Otras reglas del makefile que puedes usar:

make - compila los archivos obligatorios de printf
make clean - elimina todos los archivos *.o
make fclean - elimina todos los archivos *.o y *.a (ejecutables)
make re - usa fclean + all, recompila printf
  1. Para incluirlo en tu código, incluye la cabecera
#include 'ft_printf.h"

How to test ?


Francinette

To standart test, go to printf path and run:

All standard tests should work perfectly.

$ paco

To strict test, go to the library path and run:

The “strict” tests do not work correctly, the function does not return -1 and lacks certain protections…

$ paco -s

The “strict” tests do not work correctly, the function does not return -1 and lacks certain protections…

Notes

The bonus part of the project is not included.

🚀 About Me

I’m 42Network student at 42Madrid(Spain)

You can track my progress through the common core at:

https://profile.intra.42.fr/users/jdelorme

More about:

https://img.shields.io/badge/linkedin-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white

License

This project is licensed under the MIT License. See the LICENSE file for details.