-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.h
More file actions
46 lines (41 loc) · 713 Bytes
/
utils.h
File metadata and controls
46 lines (41 loc) · 713 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef __UTILS_H__
#define __UTILS_H__
/**
* @brief Terminal colors
*
*/
#define RED "\x1B[31m"
#define GRN "\x1B[32m"
#define YEL "\x1B[33m"
#define BLU "\x1B[34m"
#define MAG "\x1B[35m"
#define CYN "\x1B[36m"
#define WHT "\x1B[37m"
#define RESET "\x1B[0m"
/**
* @brief Print info message
*
* @param file
* @param message
*/
extern void info(char* file, char* message);
/**
* @brief Print error message
*
* @param file
* @param message
*/
extern void error(char* file, char* message);
/**
* @brief Trim whitespaces from a string
*
* @param data
*/
extern void trim_whitespaces(char* data);
/**
* @brief Print a mark "@@@@"
*
* @param n
*/
extern void mark(int n);
#endif