-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.h
40 lines (36 loc) · 1017 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 <stdarg.h>
#include <stddef.h>
#include <stdlib.h>
/**
* struct structprint - structure containing
* @q: the location and method to translate data to characters.
* @u: print function for specific type.
*
* Return: int
*/
typedef struct structprint
{
char *q;
int (*u)(char *format, va_list);
} structype;
int _putchar(char ch);
int _puts(char *string);
int printc(char *format, va_list);
int printstr(char *format, va_list);
int (*driver(char *format))(char *format, va_list);
int _printf(char *format, ...);
int printint(char *format, va_list pa);
int integer(int number);
int contadordigit(int number);
int _abs(int number);
int printpercent(char *format, va_list pa);
int printhex(char *format, va_list);
int printHEX(char *format, va_list);
int printocta(char *format, va_list);
int print_unsign(char *format, va_list);
int print_usignedint(char *format, va_list pa);
int int_count(unsigned int number);
int digit_count(unsigned int number);
#endif /* MAIN_H */