-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.h
31 lines (26 loc) · 880 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
#ifndef MAIN_H
#define MAIN_H
#include <stdlib.h>
#include <unistd.h>
#include <stdarg.h>
/**
* struct sp - structure that holds specifiers and their corresponing function
* @spesifier: spesifier
* @function: function pointer
*/
typedef struct sp
{
char spesifier;
int (*function)(const char *format, va_list arg, int *pcount);
} sp;
int _printf(const char *format, ...);
int _putchar(char c);
int _string(const char *format, va_list arg, int *pcount);
int _char(const char *format, va_list arg, int *pcount);
int _integer(const char *format, va_list arg, int *pcount);
int _module(const char *format, va_list arg, int *pcount);
int _b(const char *format, va_list arg, int *pcount);
int _rev(const char *format, va_list arg, int *pcount);
int _octal(const char *format, va_list arg, int *pcount);
int _u(const char *format, va_list arg, int *pcount);
#endif /*MAIN_H*/