-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
29 lines (26 loc) · 751 Bytes
/
main.h
File metadata and controls
29 lines (26 loc) · 751 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
#ifndef HOLBERTON_H
#define HOLBERTON_H
#include <stdarg.h>
/**
* struct specifiers - Struct specifiers
* @specifier: The conversion specifier
* @f: The function pointer
*/
typedef struct specifiers
{
char *specifier;
int (*f)(va_list args);
} spc_dt;
int _write(char c);
int _printf(const char *format, ...);
int _print_a_char(va_list args);
int _print_a_string(va_list args);
int _print_format(const char *format, va_list args);
int _print_spec(char format, va_list args);
int _print_invalid_spec(char prev_format, char format, int count);
int _print_a_integer(va_list args);
void _recursion_integer(int a);
int _print_int_binary(va_list args);
void _recursion_int_binary(int a);
int _validate_char(char _type);
#endif /* _HOLBERTON */