-
Notifications
You must be signed in to change notification settings - Fork 0
/
holberton.h
30 lines (27 loc) · 645 Bytes
/
holberton.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
#ifndef _HOLBERTON_H_
#define _HOLBERTON_H_
#include <stdarg.h>
/**
* struct types - holds the argument type
* and pointer to function with argument
* type (our list of parameters).
*
* @type: ptr to the char identifier
*
* @f: pointer to function of params
* in the ellipse.
*/
typedef struct types
{
char type;
int (*f)(va_list);
} type_s;
int print_char(va_list params);
int print_string(va_list params);
int print_number(va_list params);
int _printf(const char *format, ...);
int _putchar(char c);
int getter(const char *format, va_list params, int i);
int print_binary(va_list params);
int print_octal(va_list params);
#endif