-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
48 lines (35 loc) · 687 Bytes
/
main.h
File metadata and controls
48 lines (35 loc) · 687 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
46
47
48
#ifndef MAIN_H
#define MAIN_H
/* STANDARD LIBRARIES */
#include <stdarg.h>
#include <limits.h>
#include <stdlib.h>
#include <unistd.h>
/* STRUCTS */
/**
* struct format - struct for each format
* @fmt: the format specifier
* @f: the function associated
*/
typedef struct format
{
char fmt;
char *(*f)(va_list);
} format;
/* FUNCTION PROTOTYPES */
/* str.c */
char *spr(va_list);
/* int.c */
char *dipr(va_list);
/* fp.c */
/* char.c */
char *cpr(va_list);
/* _printf.c */
int _printf(const char *format, ...);
/* helpers.c */
char *(*get_func(char s))(va_list);
int cpstr(char *s);
int _putchar(char c);
char *_strcat(char *s1, char *s2);
int _strlen(char *s);
#endif