Skip to content

LudwigAndreas/ft_libftprintf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libft ft_printf

Implementation of the printf function from the standard C library. The project is part of the School 21 curriculum.

Table of Contents

About

This project is a part of the School 21 curriculum. The main goal of this project is to learn how to work with the standard C library functions. The project is a simplified implementation of the printf function from the standard C library. The function is able to print strings, characters, integers, and hexadecimal numbers. The function also supports flags, width, and precision.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them.

gcc >= 7.5.0
make >= 4.1
sudo apt-get install make
sudo apt-get install gcc

Installing

A step by step series of examples that tell you how to get a development env running.

Clone the repository.

git clone https://github.com/LudwigAndreas/ft_libftprintf

cd ft_libftprintf

Build the project.

make

It will create a library called libftprintf.a.

Running the tests

Explain how to run the automated tests for this system.

make test

Usage

The function has the following prototype:

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

The function supports the following format specifiers:

  • %c - character
  • %s - string
  • %d - integer
  • %i - integer
  • %u - unsigned integer
  • %x - hexadecimal number
  • %X - hexadecimal number
  • %% - percent sign

Built Using

  • C - Programming language
  • Make - Build automation tool
  • GCC - Compiler

Authors

This project was developed by:

drawing LudwigAndreas

Acknowledgements

  • School 21 - Educational institution
  • 42 - Educational institution

License

This project is licensed under the School 21 License - see the LICENSE file for details.

About

Library with added ft_printf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published