-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathholberton.h
More file actions
42 lines (36 loc) · 822 Bytes
/
holberton.h
File metadata and controls
42 lines (36 loc) · 822 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
41
42
#ifndef HOLBERTON_H
#define HOLBERTON_H
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <unistd.h>
#define BUFFER 1024
/**
* struct format_spec - Struct
* @spec: specifier
* @f: function, pointer
*/
typedef struct format_spec
{
char *spec;
int (*f)(va_list);
} spec_type;
int _printf(const char *format, ...);
int (*get_specifier(char format))(va_list);
int get_int(va_list arg);
int get_unsigned(va_list arg);
int get_char(va_list arg);
int get_string(va_list arg);
int get_reverse(va_list arg);
void _puts(char *str);
int _putchar(char c);
int _strlen(char *str);
int rev_string(va_list arg);
int get_percent(va_list arg);
int get_hex(va_list arg);
int get_heX(va_list arg);
int get_binary(va_list arg);
int get_octal(va_list arg);
int get_rot13(va_list arg);
#endif