-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathholberton.h
37 lines (33 loc) · 943 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
31
32
33
34
35
36
37
#ifndef HOLBERTON_H
#define HOLBERTON_H
#include <stdarg.h>
#include <stdlib.h>
/**
*struct directives - holds fromat specifiers and their functions.
*@spec: char.
*@fspec: function pointer.
*
*/
typedef struct directives
{
char spec;
int (*fspec)(va_list, int);
} forms;
int _putchar(char c);
int _printf(const char *format, ...);
int (*get_print_func(char c))(va_list, int);
int print_ch(va_list, int);
int print_str(va_list, int);
int print_int(va_list, int);
int _putchar_int(int, int);
int print_numbers(unsigned long n, unsigned int base, const char *digits);
unsigned int find_length(unsigned int, int);
int print_hex(va_list args, int len);
int print_heX(va_list args, int len);
int print_unsignd(va_list args, int len);
int print_octal(va_list args, int len);
int print_rot13(va_list args, int len);
int print_b(va_list args, int len);
int print_binary(unsigned int, int);
int print_Str(va_list args, int len);
#endif