comparison ticoff/main.c @ 71:c15cd3d695c0

tiobjd: successful parsing of the section header table
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 22 Mar 2014 05:53:02 +0000
parents 6799a5c57a49
children 1a23ff9a81de
comparison
equal deleted inserted replaced
70:6799a5c57a49 71:c15cd3d695c0
5 #include <sys/types.h> 5 #include <sys/types.h>
6 #include <stdio.h> 6 #include <stdio.h>
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 #include <strings.h> 9 #include <strings.h>
10 #include "filestruct.h"
11 #include "globals.h" 10 #include "globals.h"
12 11
12 extern int cmd_sechdr();
13 extern int dump_filehdr_info(); 13 extern int dump_filehdr_info();
14 14
15 static struct cmdtab { 15 static struct cmdtab {
16 char *cmd; 16 char *cmd;
17 int (*func)(); 17 int (*func)();
18 } cmdtab[] = { 18 } cmdtab[] = {
19 {"hdr", dump_filehdr_info}, 19 {"hdr", dump_filehdr_info},
20 {"sechdr", cmd_sechdr},
20 {0, 0} 21 {0, 0}
21 }; 22 };
22 23
23 main(argc, argv) 24 main(argc, argv)
24 char **argv; 25 char **argv;