-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVectorParser.h
More file actions
49 lines (43 loc) · 3.23 KB
/
VectorParser.h
File metadata and controls
49 lines (43 loc) · 3.23 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
47
48
49
/*****************************************************************************************************\
File Name : VectorParser.h
Author : Ilay Gilman
Purpose : header of vectorparser.c
\*****************************************************************************************************/
#ifndef _VECTOR_PARSER_
#define _VECTOR_PARSER_
/* Decleration Section *********************************************************************************/
/*****************************************************************************************************\
* Function Name : count_appearence
* Function Porpuse : count appearence of recieved sign in recieved char*[]
* Function Params : char *argv[], int argv_length, char *sign
* Return Values : int
* Remarks : none
* Authors : Ilay Gilman
\*****************************************************************************************************/
int count_appearence(char *argv[], int argv_length, char *sign);
/*****************************************************************************************************\
* Function Name : get_indexes
* Function Porpuse : get indexes of recieved char*[] which point to recieved sign
* Function Params : char *argv[], int argv_length, char *sign[], int sign_length, int dst_array[]
* Return Values : none
* Remarks : dst_array gets modified.
[0] will contain the first index where any sign was
[1] will contain the second ... and so...
values encreased in 1 inorder to sync
* Authors : Ilay Gilman
\*****************************************************************************************************/
void get_indexes(char *argv[], int argv_length, char *sign[], int sign_length, int dst_array[]);
/*****************************************************************************************************\
* Function Name : get_length
* Function Porpuse : getting length of each cmd
feed the dst_columns array in the right values
* Function Params : int src_array[], int dst_array[], int length, int ref
* Return Values : void
* Remarks : dst_array gets modified
[0] will contain the number of arg first cmd contain
[1] will contain the number of arg second cmd ...
values decreased in 1 inorder to sync
* Authors : Ilay Gilman
\*****************************************************************************************************/
void get_length(int src_array[], int dst_array[], int length, int ref);
#endif //_VECTOR_PARSER_