-
Notifications
You must be signed in to change notification settings - Fork 0
/
my_headers.h
33 lines (29 loc) · 971 Bytes
/
my_headers.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 MY_HEADERS_H
#define MY_HEADERS_H
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <stdbool.h>
#define COLOR_RED "\x1b[31m"
#define COLOR_YELLOW "\x1b[33m"
#define COLOR_BLUE "\x1b[34m"
#define COLOR_RESET "\x1b[37m"
char *check_c_opt(int argc, char *argv[], char* char_sec);
int check_t_opt(int argc, char *argv[]);
bool my_guess_check(char *char_sec, char *guess);
char *my_guess_reader(char *guess, char *my_buf);
bool my_strcmp(char* param_1, char* param_2);
int my_strlen(char* param_1);
char* my_strcpy(char* param_1, char* param_2);
bool my_strchr(char* param_1, char param_2);
bool my_duplchr(char* param_1, char param_2);
bool my_strint(int* param_1, int param_2);
int *my_secretcode(int* secret_code);
char* my_itoa(char* char_sec, int *secret_code);
bool valid_length(char *char_sec);
bool code_validator(char *char_sec);
char *my_emptystr(char* param);
#endif