FreeCalypso > hg > freecalypso-tools
comparison rvinterf/ctracedec/main.c @ 0:e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 11 Jun 2016 00:13:35 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e7502631a0f9 |
---|---|
1 /* | |
2 * This module contains the main() function for ctracedec | |
3 */ | |
4 | |
5 #include <stdio.h> | |
6 #include <stdlib.h> | |
7 | |
8 char *str2ind_tab_filename; | |
9 | |
10 main(argc, argv) | |
11 char **argv; | |
12 { | |
13 int i; | |
14 | |
15 if (argc < 3) { | |
16 fprintf(stderr, | |
17 "usage: %s str2ind.tab logfile [more log files]\n", | |
18 argv[0]); | |
19 exit(1); | |
20 } | |
21 str2ind_tab_filename = argv[1]; | |
22 read_str2ind_tab(); | |
23 for (i = 2; i < argc; i++) | |
24 process_log_file(argv[i]); | |
25 exit(0); | |
26 } |