-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
35 lines (30 loc) · 658 Bytes
/
main.h
File metadata and controls
35 lines (30 loc) · 658 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
#ifndef MAIN_F
#define MAIN_F
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stddef.h>
#include <string.h>
/**
* struct pr - defines a structure
* for symbols and functions
* @sym: the operator
* @f: the function associated
*/
typedef struct pr
{
char *op;
int (*f)(va_list);
} pr_f;
int _putchar(char c);
int _printf(const char *format, ...);
int print_c(va_list list);
int print_s(va_list list);
int print_i(va_list list);
int print_d(va_list list);
int print_r(va_list list);
int print_mod(va_list list);
int print_d(va_list list);
int _strlen(char *s);
int _function(const char *format, pr_f ops[], va_list ap);
#endif