-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.h
33 lines (29 loc) · 800 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
#ifndef MAIN_H
#define MAIN_H
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#define BUFFSIZE 1024
#define MYSTDOUT_FILENO 1
#define UNUSED(x) (void)(x)
/**
*struct struc - this struct take char from the format
*@c: char reprsent the char after %
*
*@func: is a function that match with the c
*/
typedef struct struc
{
char c;
int (*func)(va_list, char*);
} specifier;
int _writenum(char *buffer,int negat, int i);
int _print_integer(va_list args, char *buffer);
int _printstr(char *buffer, int *buflong);
int _printf(const char *format, ...);
int _putchar(va_list args, char *buffer);
int _prcntcase(va_list args, char *buffer);
int _strcase(va_list args, char *buffer);
int _handlagrs(const char *format, int *i, va_list args, char *buffer);
#endif