12 #define ABS(value) ((value < 0) ? -value : value)
13 #define MALLOC(size) my_malloc(size, 1)
14 #define CALLOC(size) my_memset(my_malloc(size, 1), 0, size)
15 #define FREE my_malloc(0, 0)
31void *my_malloc(
size_t size,
int alloc);
33void my_putcharf(
int fd,
char c);
34int my_putstrf(
int fd,
char const *str);
35int my_put_nbrf(
int fd,
int nb);
36int my_printf(
int fd,
char const *format, ...);
37void my_putchar(
char c);
39int my_put_nbr(
int nb);
40void my_swap(
int *a,
int *b);
41int my_putstr(
char const *str);
42int my_strlen(
char const *str);
43int my_getnbr(
char const *str);
44float my_str_to_float(
char *str);
45char *my_float_to_str(
float n,
int precision);
46void my_sort_int_array(
int *tab,
int size);
47int my_compute_power_rec(
int nb,
int power);
48int my_compute_square_root(
int nb);
49int my_is_prime(
int nb);
50int my_find_prime_sup(
int nb);
51char *my_strcpy(
char *dest,
char const *src);
52char *my_strncpy(
char *dest,
char const *src,
int n);
53char *my_revstr(
char *str);
54char *my_strstr(
char *str,
char const *to_find);
55int my_strcmp(
char const *s1,
char const *s2);
56int my_strncmp(
char const *s1,
char const *s2,
int n);
57char *my_strupcase(
char *str);
58char *my_strlowcase(
char *str);
59char *my_strcapitalize(
char *str);
60int my_str_isalpha(
char const *str);
61int my_str_isnum(
char const *str);
62int my_str_islower(
char const *str);
63int my_str_isupper(
char const *str);
64int my_str_isprintable(
char const *str);
65int my_showstr(
char const *str);
66int my_showmem(
char const *str,
int size);
67char *my_strcat(
char *dest,
char const *src);
68char *my_strncat(
char *dest,
char const *src,
int nb);
70int my_print_combn(
int n);
71int my_compute_factorial_rec(
int nb);
72int my_putnbr_base(
int nbr,
char const *base);
73int my_getnbr_base(
char const *str,
char const *base);
74void my_print_params(
int argc,
char **argv);
75void my_rev_params(
int argc,
char **argv);
76void my_sort_params(
int argc,
char **argv);
77char *my_strdup(
const char *src);
78char *my_concat_params(
int argc,
char **argv);
79int my_show_word_array(
char *
const *tab);
80char **my_str_to_word_array(
char const *str);
81char **my_super_array(
char *str,
char *sep);
82char *my_convert_base(
char const *nbr,
83 char const *base_from,
char const *base_to);
84char *my_convert_base_unsigned(
char const *nbr,
85 char const *base_from,
char const *base_to);
86char *my_convert_base_size_t(
char const *nbr,
87 char const *base_from,
char const *base_to);
88struct info_param *my_params_to_array(
int ac,
char **av);
89int my_show_param_array(
struct info_param const *par);
90int my_array_of_array_len(
char **array);
91int my_putstr_error(
char const *str);
92int my_putstr_sized(
char const *str,
int size);
93size_t my_compute_power_rec_size_t(
int nb,
int p);
94void my_round_float_str(
char *float_nb,
char last_char,
int i,
int enable);
95int my_char_isprintable(
char const c);
97char *my_str_nbr(
int nb);
98char *my_str_nbr_short(
short int nb);
99char *my_str_nbr_short_short(
signed char nb);
100char *my_str_nbr_base_unsigned(
unsigned int nbr,
char const *base);
101char *my_str_nbr_base_unsigned_short(
unsigned short nbr,
char const *base);
102char *my_str_nbr_base_unsigned_short_short(
unsigned char nbr,
104char *my_str_nbr_base_unsigned_size_t(
size_t nbr,
char const *base);
105char *my_str_nbr_base_unsigned_long(
unsigned long nbr,
char const *base);
106char *my_str_nbr_base_long_long_int(
long long int nbr,
char const *base);
108char *my_str_nbr_unsigned(
unsigned int nb);
109char *my_str_nbr_unsigned_long(
unsigned long int nb);
110char *my_str_nbr_long_long(
long long nb);
111char *my_str_nbr_size_t(
size_t nb);
112void *my_memset(
void *ptr,
int value,
size_t num);
123float my_getnbr_float(
char const *str);