-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
45 lines (40 loc) · 918 Bytes
/
main.h
File metadata and controls
45 lines (40 loc) · 918 Bytes
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
#ifndef MAIN_H
#define MAIN_H
#include <stdarg.h>
int _putchar(va_list pams);
int prntstr(va_list pams);
int _printf(const char *format, ...);
int _putchar2(char c);
int count_digits(unsigned int n);
int prntbnry(va_list pams);
int prntoct(va_list pams);
int _prntnum(va_list pams);
int countbnry(unsigned int n);
int countoct(unsigned int n);
int _prntnum1(int n);
int prntbnry1(int a);
int prntoct1(int a);
int prnt_unsigned1(int a);
int prnt_unsigned(va_list pams);
int count_hex(unsigned int n);
int hex0(va_list pams);
int hex(va_list pams);
int hex1(int n);
int hex2(int n);
/**
* struct func_array - array of functions and specifier symbols
*@t: the specifier symbol
*@fp: pointer to the appropriate function
*
*/
struct func_array
{
char t;
int (*fp)(va_list pams);
};
typedef struct func_array fa;
#endif /*MAIN_H*/
#ifndef SELECT_H
#define SELECT_H
int (*sel_func(char c)) (va_list pams);
#endif