-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.h
41 lines (35 loc) · 919 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
#ifndef MAIN_H
#define MAIN_H
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
#include <stdint.h>
/**
* struct nm - holds the specifiers with the corresponding functions
* @specifier: a character that represents the required function
* @function: the required corresponding function
*/
typedef struct nm
{
char specifier;
int (*function)(va_list);
} identifiers;
int _printf(const char *format, ...);
int _putchar(char c);
int printC(va_list args);
int printS(va_list args);
int printI(va_list args);
int printPercent(__attribute__((unused)) va_list args);
int print_Bi(va_list args);
int printUnsigned(va_list args);
int printReverse(va_list args);
int printROT13(va_list args);
int printStirngS(va_list args);
int printHEX(va_list args);
int printHex(va_list args);
int printOctal(va_list args);
int printPointer(va_list args);
#endif