-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.h
50 lines (38 loc) · 917 Bytes
/
main.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
47
48
49
50
#ifndef _PRINTF_
#define _PRINTF_
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
/**
* struct cvrt - defines a structure for symbols and functions
* @symbol: The operator
* @f: The function associated
*/
struct cvrt
{
char *symbol;
int (*f)(va_list);
};
typedef struct cvrt _cvrt;
int _putchar(char);
int _printf(const char *format, ...);
int parser(const char *format, _cvrt f_list[], va_list arg_list);
int p_char(va_list);
int p_percent(va_list);
int p_num(va_list);
int p_int(va_list);
int p_str(va_list);
int rot13(va_list);
int unsigned_int(va_list);
int p_rev(va_list arg);
int p_binary(va_list);
int p_octal(va_list list);
int p_hex(va_list list);
int p_heX(va_list list);
int p_str_rev(va_list arg);
unsigned int base_len(unsigned int, int);
char *rev_str(char *);
void write_base(char *str);
char *_memcpy(char *dest, char *src, unsigned int n);
int p_u_num(unsigned int);
#endif