-
Notifications
You must be signed in to change notification settings - Fork 0
/
my_printf.h
43 lines (38 loc) · 1.18 KB
/
my_printf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
** my_printf.c for in /u/epitech_2012/brenne_t/cu/rendu/c/my_printf
**
** Made by thomas brennetot
** Login <brenne_t@epitech.net>
**
** Started on Tue Nov 13 14:41:34 2007 thomas brennetot
** Last update Fri Dec 28 17:31:14 2007 thomas brennetot
*/
#ifndef __MY_PRINTF_H__
#define __MY_PRINTF_H__
#include <stdarg.h>
typedef struct opt_s
{
char c;
void (*fonction)();
} opt_t;
int my_printf(char *print_str, ...);
void choose_fonction(va_list *args, char *str, int *i);
void my_printf_c(char *str, va_list *args);
void my_printf_s(char *str, va_list *args);
void my_printf_S(char *str, va_list *args);
void my_printf_d(char *str, va_list *args);
void my_printf_p(char *str, va_list *args);
void my_printf_P(char *str, va_list *args);
void my_printf_o(char *str, va_list *args);
void my_printf_x(char *str, va_list *args);
void my_printf_X(char *str, va_list *args);
void my_printf_modu(char *str, va_list *args);
void my_printf_u(char *str, va_list *args);
void my_putchar(char c);
int my_strlen(char *str);
void my_put_nbr(int nb);
void my_putstr(char *str);
void my_put_ptr_adr(unsigned int adr, int flag);
void my_put_nbr_u(unsigned int nb);
int my_putnbr_base(int nb, char *base);
#endif