-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.h
32 lines (28 loc) · 800 Bytes
/
main.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
#ifndef _MAIN_
#define _MAIN_
#include "stdio.h"
#include "stdlib.h"
#include "stdarg.h"
#include "string.h"
typedef struct specifier_handler specifier_handler;
/**
* struct specifier_handler - struct to store specifier and its handeler
* @specifier: the specifier char
* @handler: function pointer to handel spacifier
*/
struct specifier_handler
{
char specifier;
int (*handler)(char *, va_list *);
};
int _printf(const char *, ...);
int handel_specifires(va_list *, const char *, char *, int *);
/* specifires handlers functions*/
int c_handler(char *, va_list *);
int s_handler(char *, va_list *);
int d_handler(char *, va_list *);
int i_handler(char *, va_list *);
int b_handler(char *, va_list *);
int U_handler(char *, va_list *);
int percentage_handler(char *, const char *);
#endif