forked from ikki2530/printf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathholberton.h
46 lines (40 loc) · 1.02 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
45
46
#ifndef HOLBERTON_H
#define HOLBERTON_H
#include <stdarg.h>
#include <stdlib.h>
/* printf function */
int _printf(const char *format, ...);
/* print ascii */
int print_char(char c);
int print_string(char *s);
/* print numbers */
int print_integer(int n);
int recursion_int(int n, int cont);
int print_double(long int n);
int recursion_double(long int n, int cont);
int print_unsig(unsigned int n);
int recursion_unsig(unsigned int n, int cont);
void rev_string(char *s);
/* convert list to printeable ascii */
int convert_char(va_list list);
int convert_string(va_list list);
/* convert list to printeable numbers */
int convert_integer(va_list list);
int convert_double(va_list list);
int convert_unsig(va_list list);
int convert_binary(va_list list);
/* reverse a string*/
void rev_string(char *s);
int find(const char *data, va_list list);
/**
*struct find - struct find to find function related with data type
*
*@type: datatype
*@print: pointer to function
*/
typedef struct find
{
char *type;
int (*print)();
} s_find;
#endif