Skip to content

niamu01/ft_printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ft_printf

🖨️ Recode the libc’s printf function

Technologies Used

C MAKEFILE

Subject

Mandatory

  • It will manage the following conversions: cspdiuxX%
  • It will manage any combination of the following flags: ’-0.*’ and minimum field width with all conversions

Bonus

  • Manage one or more of the following conversions: nfge
  • Manage one or more of the following flags: l ll h hh
  • Manage all the following flags: '# +' (yes, one of them is a space)

Getting Started

git clone https://github.com/niamu01/ft_printf
cd ft_printf
make [all, re, clean, fclean] #(Did not undertake the bonus section)
  • make all: Compiles mandatory files and creates the libftprintf.a file.
  • make re: Performs an incremental build.
  • make clean: Removes object files.
  • make fclean: Removes object files and the library file.

This project compiles various functions into a single library file and prevent relinking.

How To Use

You can use the libftprintf.a file generated by make in another project

Example:

gcc -o my_program main.c -L/path/to/ft_printf -lftprintf

💡 Ensure the /path/to/ft_printf is replaced with the actual path to your libftprintf.a file.

About

🖨️ This project is pretty straight forward. You will recode printf. mainly learn how to use variadic arguments

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors