-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.h
More file actions
29 lines (25 loc) · 881 Bytes
/
main.h
File metadata and controls
29 lines (25 loc) · 881 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
#ifndef MAIN_HEADER
#define MAIN_HEADER
#include <stdio.h>
#include <unistd.h>
#include <stdarg.h>
#include <stdlib.h>
typedef struct functions
{
char *form_char;
void *(*f)(va_list, char **buffer);
} functions_t;
void *(*match(const char *format))(va_list data, char **buffer);
void *f_char(va_list data_input, char **output);
int _printf(const char *format, ...);
char *f_strcpy(const char *str, char *output, int index);
int index_func(const char *input_string);
int _putchar(char *buff, int sizebuff);
void *_realloc(void *ptr, unsigned int old_size, unsigned int new_size);
void *f_str(va_list data_input, char **output);
char *f_strcomp(const char *str, char *output, int index);
int _strlen(char *s);
void *f_intcpy(int input, char **output);
void *f_int(va_list data_input, char **output);
void *_calloc(unsigned int nmemb, unsigned int size);
#endif /*MAIN_HEADER*/