]> git.donarmstrong.com Git - biopieces.git/blob - code_c/Maasha/src/test_list.c
refactoring of assemble_pairs
[biopieces.git] / code_c / Maasha / src / test_list.c
1 #include <stdio.h>
2 #include "common.h"
3 #include "list.h"
4
5 int main()
6 {
7 //    struct list *list_pt;
8 //
9 //    char *string1 = "Hello";
10 //    char *string2 = "World";
11 //
12 //    list_add( &list_pt, string1 );
13 //    list_add( &list_pt, string2 );
14 //    
15 //    if ( list_exists( list_pt, "World" ) ) {
16 //        printf( "Found\n" );
17 //    } else {
18 //        printf( "Not Found\n" );
19 //    }
20 //
21 //    list_free( &list_pt );
22
23     struct list_int *list_int_pt;
24
25     int i = 4;
26     int j = 12;
27
28     list_add_int( &list_int_pt, i );
29     list_add_int( &list_int_pt, j );
30
31     if ( list_exists_int( list_int_pt, j ) ) {
32         printf( "Found\n" );
33     } else {
34         printf( "Not Found\n" );
35     }
36
37     list_free( &list_int_pt );
38
39     return 0;
40 }
41
42