Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

FirelightFlagboy/ft_printf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ft_printf

project recode function printf

work like printf


see projet's pdf for more info

see man printf

Constante

  • BUFF_SIZE_PRINTF : the buffer size of ft_printf when it full it flush
  • NB_FC : the number of function alias number of working flags
  • NB_COLOR : the number of color and type

Function

ft_printf(char const *format, ...);
ft_dprintf(int fd, char const *format, ...);
ft_eprintf(char const *s, ...);
ft_fprintf(FILE *file, char const *format, ...);
ft_sprintf(char *dest, char const *format, ...);
ft_snprint(char *dest, size_t n, char const *format, ...);
ft_asprintf(char **as, char const *format, ...);

ft_vdprintf(int fd, char const *format, va_list ap);
ft_vfprintf(FILE *file, char const *format, va_list ap);
ft_vsprintf(char *dest, char const *format, va_list ap);
ft_vsnprintf(char *dest, size_t n, char const *format, va_list ap);
ft_vasprintf(char **as, char const *format, va_list ap);

work also with color

Color & Style

  • see enum e_color
    • use with flag %@ and give him an argument eq : ft_printf("%@blue%@", P_BLUE, P_RESET);

About

project recode function printf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published