-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathholberton.h
44 lines (41 loc) · 1.17 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef HOLBERTON_H
#define HOLBERTON_H
#include <stdarg.h>
#include <unistd.h>
#include <stdlib.h>
/**
* struct format_specifiers - struct holing each format specifier with
* its callback
* @specifier: the format specifier
* @printer: callback for printing the argument
*/
typedef struct format_specifiers
{
char *specifier;
int (*printer)(va_list arg_list);
} fs;
int print_R(va_list arg);
int print_rev(va_list arg);
int print_STR(va_list arg);
int print_memory(va_list arg_list);
int _putchar(char c);
int parser(const char *format, va_list arg_list);
int _printf(const char *format, ...);
int print_char(va_list);
int print_string(va_list);
int print_decimal(va_list);
int print_hex(va_list);
int print_HEX(va_list);
int _pow(unsigned int base, int power);
int print_octal(va_list arg_list);
char *inttostr(int number);
int print_binary(va_list arg_list);
int _strlen(char *string);
int intlen(int number);
int isoctal(char *string);
int octaltodecimal(char *string);
int fs_looper(const char *format, const char **formatt, va_list arg_list,
fs format_list[]);
int format_looper(const char *format, va_list arg_list, fs format_list[]);
int print_unsigned(va_list arg_list);
#endif