]> git.donarmstrong.com Git - biopieces.git/blob - code_c/Maasha/src/test.c
refactoring of assemble_pairs
[biopieces.git] / code_c / Maasha / src / test.c
1 #include <stdio.h>
2 #include <stdlib.h>
3
4
5 int main()
6 {
7     char   str[] = "ABCDEFGHIJKLMNOPQRSTUVXYZ";
8     int    i     = 0;
9     char  *pt1   = NULL;
10     int    size  = 4;
11     char   word[ size ];
12
13
14     for ( i = size, pt1 = &str[ size ]; i < 10; i++, *( pt1++ ) )
15     {
16         printf( "char: %s\n", pt1 );
17 //        printf( "word: %s\n", &pt[ i ] );
18     }
19
20     return EXIT_SUCCESS;
21 }
22
23
24 //double average( int num, ... )
25 //{
26 //    /* Martin A. Hansen, July 2008 */
27 //
28 //    /* Example of varable length argument list usage. */
29 //
30 //    /* Requires '#include <stdarg.h>' */
31 //
32 //    double sum = 0;
33 //    int    x   = 0;
34 //
35 //    va_list arguments;
36 //
37 //    va_start( arguments, num );
38 //
39 //    for ( x = 0; x < num; x++ )
40 //    {
41 //        sum += va_arg( arguments, double );
42 //    }
43 //
44 //    va_end( arguments );
45 //
46 //    return sum / num;
47 //}
48
49
50 //int main( int argc, char *argv[] )
51 //{
52 //    char             *file;
53 //    FILE             *fp;
54 //    struct seq_entry *entry = NULL;
55 //    int               count;
56 //
57 //    count = 0;
58 //
59 //    file = argv[ 1 ];
60 //
61 //    fp = read_open( file );
62 //
63 //    while ( ( fasta_get_entry( fp, entry ) ) != FALSE )
64 //    {
65 //        printf( "seq_name: %s\n", entry->seq_name );
66 //
67 ////        mem_free( entry->seq_name );
68 ////        mem_free( entry->seq );
69 ////        entry = NULL;
70 //        
71 //        count++;
72 //    }
73 //
74 //    printf( "count: %d\n", count );
75 //
76 //    close_stream( fp );
77 //
78 //    return 0;
79 //}