Corewar documentation 1.0.0
Loading...
Searching...
No Matches
myprintf.h File Reference

The file containing the header of all formats and flags. More...

#include "../my.h"

Go to the source code of this file.

Data Structures

struct  formating_s
 
struct  flags_s
 
struct  user_s
 

Macros

#define FORMATAGE   "-+ #0"
 
#define WIDTH   "0123456789"
 
#define PRECISION   "."
 
#define NUMBERS   "0123456789"
 

Typedefs

typedef struct formating_s formating_t
 
typedef struct flags_s flags_t
 
typedef struct user_s user_t
 

Functions

void round_a (char *float_nb, int precision, char last_char, int i)
 
void round_biga (char *float_nb, int precision, char last_char, int i)
 
formating_tfind_first (user_t *user, int *i, formating_t *formating)
 
formating_tfind_width (user_t *user, int *i, formating_t *formating)
 
formating_tfind_precision (user_t *user, int *i, formating_t *formating)
 
formating_tfind_numbers (user_t *user, int *i, formating_t *formating)
 
formating_tfind_specifier (user_t *user, int *i, formating_t *formating)
 
void format_first (user_t *user, flags_t *flags, formating_t *formating, int *copy)
 
void format_width (user_t *user, flags_t *flags, formating_t *formating, int *copy)
 
void format_precision (user_t *user, flags_t *flags, formating_t *formating, int *copy)
 
void format_numbers (user_t *user, flags_t *flags, formating_t *formating, int *copy)
 
void format_specifier (user_t *user, flags_t *flags, formating_t *formating, int *copy)
 
void my_show_formating (formating_t *formating)
 
void format_plus_double (char *str_finale, formating_t *formating, double nb)
 
void format_moins_double (char *str_finale, formating_t *formating, double nb)
 
void format_esp_double (char *str_finale, formating_t *formating, double nb)
 
void format_hash_double (char *str_finale, formating_t *formating, double nb)
 
void format_zero_double (char *str_finale, formating_t *formating, double nb)
 
void format_it_double (char *str_finale, formating_t *formating, double partie_d)
 
void precise_it_double (char *str_finale, formating_t *formating, double partie_d)
 
void format_plus_int (char *str_finale, formating_t *formating, size_t nb)
 
void format_moins_int (char *str_finale, formating_t *formating, size_t nb)
 
void format_esp_int (char *str_finale, formating_t *formating, size_t nb)
 
void format_hash_int (char *str_finale, formating_t *formating, size_t nb)
 
void format_zero_int (char *str_finale, formating_t *formating, size_t nb)
 
void format_it_int (char *str_finale, formating_t *formating, size_t nb)
 
void precise_it_int (char *str_finale, formating_t *formating, size_t nb)
 
void format_plus_char (char *str_finale, formating_t *formating, char c)
 
void format_moins_char (char *str_finale, formating_t *formating, char c)
 
void format_esp_char (char *str_finale, formating_t *formating, char c)
 
void format_hash_char (char *str_finale, formating_t *formating, char c)
 
void format_zero_char (char *str_finale, formating_t *formating, char c)
 
void format_it_char (char *str_finale, formating_t *formating, char c)
 
void format_plus_str (char *str_finale, formating_t *formating)
 
void format_moins_str (char *str_finale, formating_t *formating)
 
void format_esp_str (char *str_finale, formating_t *formating)
 
void format_hash_str (char *str_finale, formating_t *formating)
 
void format_zero_str (char *str_finale, formating_t *formating)
 
void format_it_str (char *str_finale, formating_t *formating)
 
char * specify_it_int (formating_t *formating, size_t temp)
 
char * specify_it_base (formating_t *formating, size_t temp, char *)
 
int flag_c (va_list list, formating_t *)
 
int flag_s (va_list list, formating_t *)
 
int flag_d (va_list list, formating_t *)
 
int flag_i (va_list list, formating_t *)
 
int flag_p (va_list list, formating_t *)
 
int flag_o (va_list list, formating_t *)
 
int flag_u (va_list list, formating_t *)
 
int flag_x (va_list list, formating_t *)
 
int flag_bigx (va_list list, formating_t *)
 
int flag_e (va_list list, formating_t *)
 
int flag_bige (va_list list, formating_t *)
 
int flag_f (va_list list, formating_t *)
 
int flag_bigf (va_list list, formating_t *)
 
int flag_g (va_list list, formating_t *)
 
int flag_bigg (va_list list, formating_t *)
 
int flag_a (va_list list, formating_t *)
 
int flag_biga (va_list list, formating_t *)
 
int flag_n (va_list list, formating_t *, int len)
 
int flag_m (va_list list, formating_t *)
 
int flag_b (va_list list, formating_t *)
 
int flag_bigs (va_list list, formating_t *)
 
int flag_bigd (va_list list, formating_t *)
 
int flag_percent (va_list list, formating_t *)
 

Variables

int(* FLAGS [])(va_list, formating_t *)
 

Detailed Description

The file containing the header of all formats and flags.

Author
Nicolas TORO