forked from Brexblime/printf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
35 lines (34 loc) · 848 Bytes
/
Copy pathmain.h
File metadata and controls
35 lines (34 loc) · 848 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
#ifndef MAIN_H
#define MAIN_H
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
/**
* struct marcher - takes a array of arrays with formater and it's function
*
* @formater: The formater
* @func: The function associated with the formater
*/
typedef struct marcher
{
char *formater;
int (*func)(va_list);
} match;
int _printf(const char *format, ...);
int _putchar(char c);
int _strlen(char *str);
int print_string(va_list arg);
int print_char(va_list arg);
int print_number(va_list arg);
int print_decimal(va_list arg);
int print_percent(va_list arg);
int print_binary(va_list arg);
int print_unsigned(va_list arg);
int print_octal(va_list arg);
int print_hex(va_list arg);
int print_upperhex(va_list arg);
int print_S(va_list arg);
int print_pointer(va_list arg);
int print_reversed(va_list arg);
int print_rot13(va_list arg);
#endif