Skip to content

A simplified version of the C library function printf.

Notifications You must be signed in to change notification settings

robkle/ft_printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ft_printf

Problem: At Hive Helsinki coding school students are not allowed to use the C library function printf !
Solution: Code your own printf function!

This is a simplified version of the C library function printf that can handle:

  • csp conversions
  • diouxX conversions with hh,h, l and ll length modifiers
  • f conversion with l and L length modifiers
  • e and g conversions
  • b (binary) conversion (non-existent in real printf)
  • %%
  • #, 0, -, +, and space flags
  • minimum field width
  • precision

Usage

#include "printf.h"

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

Repository contains a Makefile for:

  • compiling (make all)
  • removing object files (make clean)
  • deleting library file (make fclean)
  • recompiling (make re)

Note:

This project is part of my studies at Hive Helsinki. It was tested by 3 fellow Hive students as well as an automated evaluation system.

About

A simplified version of the C library function printf.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published