-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
46 lines (38 loc) · 1.01 KB
/
Copy pathmain.h
File metadata and controls
46 lines (38 loc) · 1.01 KB
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 MAIN_H
#define MAIN_H
#include <stdio.h>
#include <stdarg.h>
#include <limits.h>
#include <stdlib.h>
#include <unistd.h>
/**
* struct format: defines a conversion specifier and its corresponding function
* @id: character pointer representing the specifier (e.g., 'l', 'h')
* @f: function pointer for the conversion specifier
*/
typedef struct format {
char *id;
int (*f)(va_list);
/**
*Function takes no arguments
*/
}
ConversionSpecifier;
int printf_strlength(const char *b);
int printf_strlen_constant(const char *b);
int _putchar (char p);
int printf_ROT13(va_list pars);
int printf_string(va_list par);
int printf_strrev(va_list pars);
int printf_pointer(va_list par);
int printf_hex_aux(unsigned long int digit);
int printf_hex(va_list par);
int printf_oct(va_list par);
int print_number(int n);
int printf_int(va_list pars);
int printf_dec(va_list pars);
int printf_char(va_list par);
int printf_bin(va_list par);
int printf_unsigned(va_list pars);
int _printf(const char *format, ...);
#endif