annotate ezBAMQC/src/htslib/test/hfile.c @ 17:161866cee2a2

wrapper rename
author youngkim
date Wed, 30 Mar 2016 13:28:47 -0400
parents dfa3745e5fd8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
1 /* test/hfile.c -- Test cases for low-level input/output streams.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
2
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
3 Copyright (C) 2013-2014 Genome Research Ltd.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
4
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
5 Author: John Marshall <jm18@sanger.ac.uk>
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
6
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
7 Permission is hereby granted, free of charge, to any person obtaining a copy
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
8 of this software and associated documentation files (the "Software"), to deal
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
9 in the Software without restriction, including without limitation the rights
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
11 copies of the Software, and to permit persons to whom the Software is
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
12 furnished to do so, subject to the following conditions:
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
13
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
14 The above copyright notice and this permission notice shall be included in
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
15 all copies or substantial portions of the Software.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
16
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
20 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
22 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
23 DEALINGS IN THE SOFTWARE. */
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
24
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
25 #include <stdarg.h>
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
26 #include <stdio.h>
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
27 #include <stdlib.h>
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
28 #include <errno.h>
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
29
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
30 #include <sys/stat.h>
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
31
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
32 #include "htslib/hfile.h"
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
33 #include "htslib/hts_defs.h"
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
34
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
35 void HTS_NORETURN fail(const char *format, ...)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
36 {
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
37 int err = errno;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
38 va_list args;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
39 va_start(args, format);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
40 vfprintf(stderr, format, args);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
41 va_end(args);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
42 if (err != 0) fprintf(stderr, ": %s", strerror(err));
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
43 fprintf(stderr, "\n");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
44 exit(EXIT_FAILURE);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
45 }
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
46
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
47 void check_offset(hFILE *f, off_t off, const char *message)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
48 {
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
49 off_t ret = htell(f);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
50 if (ret < 0) fail("htell(%s)", message);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
51 if (ret == off) return;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
52
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
53 fprintf(stderr, "%s offset incorrect: expected %ld but got %ld\n",
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
54 message, (long)off, (long)ret);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
55 exit(EXIT_FAILURE);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
56 }
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
57
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
58 char *slurp(const char *filename)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
59 {
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
60 char *text;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
61 struct stat sbuf;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
62 size_t filesize;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
63 FILE *f = fopen(filename, "r");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
64 if (f == NULL) fail("fopen(\"%s\", \"r\")", filename);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
65 if (fstat(fileno(f), &sbuf) != 0) fail("fstat(\"%s\")", filename);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
66 filesize = sbuf.st_size;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
67
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
68 text = (char *) malloc(filesize + 1);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
69 if (text == NULL) fail("malloc(text)");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
70
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
71 if (fread(text, 1, filesize, f) != filesize) fail("fread");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
72 fclose(f);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
73
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
74 text[filesize] = '\0';
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
75 return text;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
76 }
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
77
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
78 hFILE *fin = NULL;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
79 hFILE *fout = NULL;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
80
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
81 void reopen(const char *infname, const char *outfname)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
82 {
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
83 if (fin) { if (hclose(fin) != 0) fail("hclose(input)"); }
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
84 if (fout) { if (hclose(fout) != 0) fail("hclose(output)"); }
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
85
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
86 fin = hopen(infname, "r");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
87 if (fin == NULL) fail("hopen(\"%s\")", infname);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
88
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
89 fout = hopen(outfname, "w");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
90 if (fout == NULL) fail("hopen(\"%s\")", outfname);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
91 }
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
92
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
93 int main(void)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
94 {
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
95 static const int size[] = { 1, 13, 403, 999, 30000 };
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
96
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
97 char buffer[40000];
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
98 char *original;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
99 int c, i;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
100 ssize_t n;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
101 off_t off;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
102
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
103 reopen("vcf.c", "test/hfile1.tmp");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
104 while ((c = hgetc(fin)) != EOF) {
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
105 if (hputc(c, fout) == EOF) fail("hputc");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
106 }
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
107 if (herrno(fin)) { errno = herrno(fin); fail("hgetc"); }
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
108
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
109 reopen("test/hfile1.tmp", "test/hfile2.tmp");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
110 if (hpeek(fin, buffer, 50) < 0) fail("hpeek");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
111 while ((n = hread(fin, buffer, 17)) > 0) {
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
112 if (hwrite(fout, buffer, n) != n) fail("hwrite");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
113 }
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
114 if (n < 0) fail("hread");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
115
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
116 reopen("test/hfile2.tmp", "test/hfile3.tmp");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
117 while ((n = hread(fin, buffer, sizeof buffer)) > 0) {
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
118 if (hwrite(fout, buffer, n) != n) fail("hwrite");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
119 if (hpeek(fin, buffer, 700) < 0) fail("hpeek");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
120 }
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
121 if (n < 0) fail("hread");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
122
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
123 reopen("test/hfile3.tmp", "test/hfile4.tmp");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
124 i = 0;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
125 off = 0;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
126 while ((n = hread(fin, buffer, size[i++ % 5])) > 0) {
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
127 off += n;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
128 buffer[n] = '\0';
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
129 check_offset(fin, off, "pre-peek");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
130 if (hputs(buffer, fout) == EOF) fail("hputs");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
131 if ((n = hpeek(fin, buffer, size[(i+3) % 5])) < 0) fail("hpeek");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
132 check_offset(fin, off, "post-peek");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
133 }
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
134 if (n < 0) fail("hread");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
135
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
136 reopen("test/hfile4.tmp", "test/hfile5.tmp");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
137 n = hread(fin, buffer, 200);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
138 if (n < 0) fail("hread");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
139 else if (n != 200) fail("hread only got %d", (int)n);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
140 if (hwrite(fout, buffer, 1000) != 1000) fail("hwrite");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
141 check_offset(fin, 200, "input/first200");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
142 check_offset(fout, 1000, "output/first200");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
143
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
144 if (hseek(fin, 800, SEEK_CUR) < 0) fail("hseek/cur");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
145 check_offset(fin, 1000, "input/seek");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
146 for (off = 1000; (n = hread(fin, buffer, sizeof buffer)) > 0; off += n)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
147 if (hwrite(fout, buffer, n) != n) fail("hwrite");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
148 if (n < 0) fail("hread");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
149 check_offset(fin, off, "input/eof");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
150 check_offset(fout, off, "output/eof");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
151
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
152 if (hseek(fin, 200, SEEK_SET) < 0) fail("hseek/set");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
153 if (hseek(fout, 200, SEEK_SET) < 0) fail("hseek(output)");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
154 check_offset(fin, 200, "input/backto200");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
155 check_offset(fout, 200, "output/backto200");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
156 n = hread(fin, buffer, 800);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
157 if (n < 0) fail("hread");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
158 else if (n != 800) fail("hread only got %d", (int)n);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
159 if (hwrite(fout, buffer, 800) != 800) fail("hwrite");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
160 check_offset(fin, 1000, "input/wrote800");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
161 check_offset(fout, 1000, "output/wrote800");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
162
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
163 if (hflush(fout) == EOF) fail("hflush");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
164
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
165 original = slurp("vcf.c");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
166 for (i = 1; i <= 5; i++) {
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
167 char *text;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
168 sprintf(buffer, "test/hfile%d.tmp", i);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
169 text = slurp(buffer);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
170 if (strcmp(original, text) != 0) {
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
171 fprintf(stderr, "%s differs from vcf.c\n", buffer);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
172 return EXIT_FAILURE;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
173 }
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
174 free(text);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
175 }
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
176 free(original);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
177
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
178 if (hclose(fin) != 0) fail("hclose(input)");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
179 if (hclose(fout) != 0) fail("hclose(output)");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
180
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
181 fout = hopen("test/hfile_chars.tmp", "w");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
182 if (fout == NULL) fail("hopen(\"test/hfile_chars.tmp\")");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
183 for (i = 0; i < 256; i++)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
184 if (hputc(i, fout) != i) fail("chars: hputc (%d)", i);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
185 if (hclose(fout) != 0) fail("hclose(test/hfile_chars.tmp)");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
186
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
187 fin = hopen("test/hfile_chars.tmp", "r");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
188 if (fin == NULL) fail("hopen(\"test/hfile_chars.tmp\") for reading");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
189 for (i = 0; i < 256; i++)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
190 if ((c = hgetc(fin)) != i)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
191 fail("chars: hgetc (%d = 0x%x) returned %d = 0x%x", i, i, c, c);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
192 if ((c = hgetc(fin)) != EOF) fail("chars: hgetc (EOF) returned %d", c);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
193 if (hclose(fin) != 0) fail("hclose(test/hfile_chars.tmp) for reading");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
194
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
195 fin = hopen("data:hello, world!\n", "r");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
196 if (fin == NULL) fail("hopen(\"data:...\")");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
197 n = hread(fin, buffer, 300);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
198 if (n < 0) fail("hread");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
199 buffer[n] = '\0';
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
200 if (strcmp(buffer, "hello, world!\n") != 0) fail("hread result");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
201 if (hclose(fin) != 0) fail("hclose(\"data:...\")");
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
202
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
203 return EXIT_SUCCESS;
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
204 }