Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HighBlueParsers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Best
HighBlueParsers
Commits
435dfe0b
Commit
435dfe0b
authored
3 years ago
by
Paul Best
Browse files
Options
Downloads
Patches
Plain Diff
minor rapport2txt
parent
625bbdfc
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
RapportInfo2txt
+0
-0
0 additions, 0 deletions
RapportInfo2txt
RapportInfo2txt.c
+3
-2
3 additions, 2 deletions
RapportInfo2txt.c
with
3 additions
and
2 deletions
RapportInfo2txt
+
0
−
0
View file @
435dfe0b
No preview for this file type
This diff is collapsed.
Click to expand it.
RapportInfo2txt.c
+
3
−
2
View file @
435dfe0b
...
@@ -40,13 +40,13 @@ typedef struct{
...
@@ -40,13 +40,13 @@ typedef struct{
}
RAPPORT
;
}
RAPPORT
;
int
main
(
int
argc
,
char
*
argv
[]){
int
main
(
int
argc
,
char
*
argv
[]){
printf
(
"Have you checked rorqual and cacha lensigs and config ?? (needs to match with pic32
\'
s)"
);
//
printf("Have you checked rorqual and cacha lensigs and config ?? (needs to match with pic32\'s)");
FILE
*
infile
=
fopen
(
argv
[
1
],
"rb"
);
FILE
*
infile
=
fopen
(
argv
[
1
],
"rb"
);
if
(
infile
==
NULL
){
if
(
infile
==
NULL
){
printf
(
"Failed to open input file
\n
"
);
printf
(
"Failed to open input file
\n
"
);
return
0
;
return
0
;
}
}
strcpy
(
argv
[
1
]
+
strlen
(
argv
[
1
])
-
3
,
"txt
\0
"
);
strcpy
(
argv
[
1
]
+
strlen
(
argv
[
1
])
-
4
,
"txt
\0
"
);
FILE
*
outfile
=
fopen
(
argv
[
1
],
"w+"
);
FILE
*
outfile
=
fopen
(
argv
[
1
],
"w+"
);
if
(
outfile
==
NULL
){
if
(
outfile
==
NULL
){
printf
(
"Failed to open output file
\n
"
);
printf
(
"Failed to open output file
\n
"
);
...
@@ -54,6 +54,7 @@ int main(int argc, char* argv[]){
...
@@ -54,6 +54,7 @@ int main(int argc, char* argv[]){
}
}
RAPPORT
rapport
;
RAPPORT
rapport
;
fread
(
&
rapport
,
sizeof
(
RAPPORT
),
1
,
infile
);
fread
(
&
rapport
,
sizeof
(
RAPPORT
),
1
,
infile
);
printf
(
"Writing into %s with %d fin whale pulses and %d sperm whale clicks
\n
"
,
argv
[
1
],
rapport
.
numDetectionsRorqual
,
rapport
.
numDetectionsCachalot
);
int
i
,
j
;
int
i
,
j
;
fprintf
(
outfile
,
"Filename : %s
\n
"
,
rapport
.
fileName
);
fprintf
(
outfile
,
"Filename : %s
\n
"
,
rapport
.
fileName
);
fprintf
(
outfile
,
"
\n
rorqual preds
\n
"
);
fprintf
(
outfile
,
"
\n
rorqual preds
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment