-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
40 lines (38 loc) · 893 Bytes
/
main.h
File metadata and controls
40 lines (38 loc) · 893 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
#ifndef MAIN_H
#define MAIN_H
#include <stdarg.h>
#include <stddef.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
/**
* struct matching - matching specifiers with functions
* @id: type char of specifier
* @f: the function
*
*/
typedef struct matching
{
char id;
int (*f)();
} matching;
int _printf(const char *format, ...);
int _putchar(char c);
int _print_char(va_list args);
int _strlen(char *s);
int _print_string(va_list args);
int _print_percent(void);
int _print_d(va_list args);
int _print_i(va_list args);
int _print_b(va_list args);
int _print_u(va_list args);
int _print_o(va_list args);
int _print_HEX(va_list args);
int _print_hex(va_list args);
int _print_HEXX(unsigned int num);
int _print_S(va_list args);
int _print_p(va_list args);
int _print_hexx(unsigned long int num);
int _print_r(va_list args);
int _print_rot13(va_list args);
#endif /* MAIN_H */