-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
47 lines (44 loc) · 1.13 KB
/
main.h
File metadata and controls
47 lines (44 loc) · 1.13 KB
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
#ifndef MAIN_H
#define MAIN_H
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stddef.h>
#include <unistd.h>
#include <limits.h>
/**
* struct specs - a specifier struct
* @spec: the conversion specifier
* @f: function ptr
*/
typedef struct specs
{
char *specifier;
int (*f)();
} spcfy_dt;
/* Function prototypes */
int _printf(const char *format, ...);
int nk_print_char(va_list args);
int nk_print_str(va_list args);
int _strlen(char *s);
int _strlench(const char *s);
int print_pct(void);
int print_int(va_list args);
int print_decimal(va_list args);
int _putchar(char c);
int nk_print_binary(va_list args);
int print_binary(va_list args);
int print_int_recursion(unsigned int n);
int print_unsigned_int_binary(va_list args);
int print_unsigned_int_binary_recursion(unsigned int n);
int print_unsigned(va_list args);
int print_octa(va_list val);
int print_hexa(va_list val);
int print_HEXA(va_list val);
int print_HEXA_extra(unsigned int num);
int print_str(va_list val);
int print_address(va_list val);
int print_hexa_extra(unsigned long int num);
int print_rev_str(va_list val);
int print_rot13(va_list val);
#endif /* MAIN_H */