-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.h
40 lines (36 loc) · 1.21 KB
/
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
#ifndef _MAIN_H_
#define _MAIN_H_
#define INT_BITS (4 * 8)
#include <stdarg.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
/**
* struct call - struct call
* @t: t - flag for data type
* @f: function - assocated function
*
*/
typedef struct call
{
char t;
int (*f)(char *, va_list, int);
} call_t;
int _printf(const char *format, ...);
int buff_append(char *buff_dest, va_list arg, int buff_count, char type);
int print_buff(char *buff, unsigned int nbuff);
int str_len(char *s);
char *_strcpy(char *dest, char *src);
int parse_char(char *buff_dest, va_list arg, int buff_count);
int parse_str(char *buff_dest, va_list arg, int buff_count);
int parse_int(char *buff_dest, va_list list, int buff_count);
int parse_perc(char *buff_dest, va_list arg, int buff_count);
int parse_bin(char *buff_dest, va_list arg, int buff_count);
int parse_oct(char *buff_dest, va_list arg, int buff_count);
int parse_hex(char *buff_dest, va_list arg, int buff_count);
int parse_X(char *buff_dest, va_list arg, int buff_count);
int parse_uint(char *buff_dest, va_list arg, int buff_count);
int parse_rev(char *buff_dest, va_list arg, int buff_count);
int parse_R13(char *buff_dest, va_list arg, int buff_count);
#endif