Skip to content

ft_printf("test %-12f et % #.1x %24s !\n", 42.001, 20, "coco");

Notifications You must be signed in to change notification settings

hugohow/ft_printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ft_printf

Build Status

ft_printf("test %-12f et % #.1x %24s !\n", 42.001, 20, "coco");

Implementation from scratch of some big int operations.

Implementation from scratch of the double-precision floating-point format to get the precised representation of ft_printf("%+8.14Lf", 12.847e451L);

No memory leaks. (Valgrind certified)

TO DO

  • Adapt make test for linux

Usage

#include "ft_printf.h"

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

int main(void)
{
  ft_printf("test %-12f et % #.1x %24s !\n", 42.001, 20, "coco");
  return (0);
}
make re
gcc -Iincludes main.c libftprintf.a -o main
./main

Format placeholder syntax

%[parameter][flags][width][.precision][length]type

Flags

- + 0 #

Width

A minimum number of characters to output.

Precision

A maximum limit on the output.

Length

hh h l ll

Type

% d u f e c o s c p b

About

ft_printf("test %-12f et % #.1x %24s !\n", 42.001, 20, "coco");

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages