-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
31 lines (28 loc) · 759 Bytes
/
main.h
File metadata and controls
31 lines (28 loc) · 759 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
#ifndef MAIN_H
#define MAIN_H
#include <unistd.h>
#include <stdarg.h>
#include <string.h>
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
#define MAX_BYTE_SIZE 30
int _printf(const char *format, ...);
int print_char(va_list);
int print_string(va_list);
int print_numbers(long int big_num);
int p_func(va_list, char);
int parse_format(const char *);
int rot13(va_list);
int print_rev(va_list);
char *print_bin_helper(unsigned long, char *);
char *print_oct_helper(unsigned long, char *);
void *alloc(size_t);
char *int_to_string(long);
int str_write(char *);
int print_decimal(va_list);
int print_binary(va_list);
int print_unsigned(va_list);
int print_octal(va_list);
int print_hexa(va_list);
int print_hexa_upper(va_list);
int print_pointers(va_list);
#endif