-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
37 lines (33 loc) · 873 Bytes
/
main.h
File metadata and controls
37 lines (33 loc) · 873 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
#include <stdarg.h>
#ifndef _MAIN_H_
#define _MAIN_h_
/**
* spec - structure for specifier
* @a: the special char
* @ptr: pointer to function that receivs the special char
*/
typedef struct spec
{
char a;
int (*ptr)(char *c);
} spec_t;
/*
typedef struct spec1
{
char a;
char *(*ptr)(int *);
} spec_i;
*/
/* FUNCTIONS USED IN MAIN ENTRY POIINT */
unsigned long int validate_input(const char *str);
long int fill_buffer(char *dest, unsigned long start, const char *src, unsigned long *c);
long int print_buffer(char *str);
long int print_special(char a);
long int specify(const char *format, unsigned long *c, va_list *list);
void escape(char *, unsigned long *);
int _printf(const char *format, ...);
long int print_char(char a);
long int print_string(char *str);
/* char *conv_int(int *); */
unsigned long int get_len(const char *format);
#endif /* _MAIN_H_ */