-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
50 lines (41 loc) · 905 Bytes
/
Copy pathmain.h
File metadata and controls
50 lines (41 loc) · 905 Bytes
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
44
45
46
47
48
49
50
#ifndef MAIN_H
#define MAIN_H
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
/* utils.c */
int _strlen(const char *);
int print(char *);
char *itoa(long int, int);
/* printf.c */
int _printf(const char *, ...);
/* handler.c */
int handler(const char *, va_list);
int percent_handler(const char *, va_list, int *);
/* printers */
int print_string(va_list);
int print_char(va_list);
int print_integer(va_list);
int print_binary(va_list);
int print_rot(va_list);
int print_unsigned(va_list);
int print_octal(va_list);
int print_hexadecimal_low(va_list);
int print_hexadecimal_upp(va_list);
int print_pointer(va_list);
int print_rev_string(va_list);
/* _putchar.c */
int _putchar(char);
int buffer(char);
/**
* struct _format - Typedef struct
*
* @type: Format
* @f: The function associated
**/
typedef struct _format
{
char type;
int (*f)(va_list);
} format;
#endif /* MAIN_H */