Last change
on this file since 12486 was 9904, checked in by neise, 14 years ago |
FAD dat-file to M0-fileformat (raw) converter initial commit
|
File size:
718 bytes
|
Line | |
---|
1 | //#include "SocketClientCmd.cpp"
|
---|
2 | #include "fadtoraw.h"
|
---|
3 | #include <string.h>
|
---|
4 | #include <stdio.h>
|
---|
5 |
|
---|
6 |
|
---|
7 | int main(int argc, char *argv[])
|
---|
8 | {
|
---|
9 | tm *now;
|
---|
10 | time_t timestamp;
|
---|
11 | timestamp = time(0);
|
---|
12 | now = localtime(×tamp);
|
---|
13 | timeval starttime, endtime;
|
---|
14 | gettimeofday(&starttime, 0);
|
---|
15 | gettimeofday(&endtime, 0);
|
---|
16 | char fname[PATH_MAX];
|
---|
17 | if (argc > 1)
|
---|
18 | {
|
---|
19 | strncpy (fname, argv[1], PATH_MAX);
|
---|
20 | printf("Start converting to raw...\n");
|
---|
21 | //if(checkdata(fname, 1)){
|
---|
22 | //printf("Data ok!\n\nCreate RAW file...\n");
|
---|
23 | fadtoraw(fname, starttime, endtime, 3);
|
---|
24 | printf("Done.\n");
|
---|
25 | //}
|
---|
26 | //else printf("No RAW file created.\n");
|
---|
27 | }
|
---|
28 | else{
|
---|
29 | printf("Filename as argument needed\n");
|
---|
30 | }
|
---|
31 |
|
---|
32 | }
|
---|
33 |
|
---|
34 | void exit_program (int exit_status)
|
---|
35 | {
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.