-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmy_error.h
More file actions
47 lines (42 loc) · 1.21 KB
/
my_error.h
File metadata and controls
47 lines (42 loc) · 1.21 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
/*******************************************************************************
*
* File Name : error.h
* Created By : Thomas Aurel
* Creation Date : January 31th, 2015
* Last Change : March 1th, 2015 at 23:06:52
* Last Changed By : Thomas Aurel
* Purpose : Configure C error
*
*******************************************************************************/
/**
* verify if a return size is the expected value
*
* param: int result, return value
* int expected, expected value
* return: return 1 if result == expected
**/
int return_verification_int(int res, int exp);
/**
* verify is size is not too big
*
* param: int value, size given
* int expected, size expected
* return: return 0 if value < expected
**/
int verify_inf_size(int value, int expected);
/**
* verify if char c is in tab
*
* param: char c, char given
* char* tab, char value
* return: return 1 if c is in tab
**/
int verify_char_tab(char c, char* tab, int tsize);
/**
* verify if char c1 is equals to char c2
*
* param: char c1, char c2
* char c1, char c2
* return: return 1 if c1==c2, otherwise it exits the programm.
**/
int verify_char(char c1, char c2);