commit | author | age
|
d7639a
|
1 |
#include<stdio.h> |
SP |
2 |
#include<math.h> |
|
3 |
#include "general.h" |
|
4 |
#include "vertex.h" |
|
5 |
//#include "io.h" |
|
6 |
//#include "initial_timestep.h" |
|
7 |
|
|
8 |
/** Entrance function to the program |
|
9 |
* @param argv is a number of parameters used in program call (including the program name |
|
10 |
* @param argc is a pointer to strings (character arrays) which holds the arguments |
|
11 |
* @returns returns 0 on success, any other number on fail. |
|
12 |
*/ |
|
13 |
|
|
14 |
int main(int argv, char *argc[]){ |
|
15 |
ts_bool retval; |
73f967
|
16 |
ts_vertex_list *vlist=init_vertex_list(5); |
d7639a
|
17 |
|
SP |
18 |
|
73f967
|
19 |
retval=vtx_add_neighbour(VTX(vlist,1),VTX(vlist,0)); |
d7639a
|
20 |
if(retval==TS_FAIL) printf("1. already a member or vertex is null!\n"); |
73f967
|
21 |
retval=vtx_add_neighbour(VTX(vlist,0),VTX(vlist,1)); |
d7639a
|
22 |
if(retval==TS_FAIL) printf("2. already a member or vertex is null!\n"); |
SP |
23 |
|
73f967
|
24 |
vtx_list_free(vlist); |
d7639a
|
25 |
printf("Done.\n"); |
SP |
26 |
return 0; //program finished perfectly ok. We return 0. |
|
27 |
} |