int nradar;
char title[100];
- if ((fp = fopen(infile, "r")) == NULL) {
+ if ((fp = fopen(infile, "rb")) == NULL) {
perror(infile);
return NULL;
}
if (radar == NULL) return 0;
- if ((fp = fopen(outfile, "w")) == NULL) {
+ if ((fp = fopen(outfile, "wb")) == NULL) {
perror(outfile);
return -1;
}
int n;
if (radar == NULL) return 0;
- if ((fp = fopen(outfile, "w")) == NULL) {
+ if ((fp = fopen(outfile, "wb")) == NULL) {
perror(outfile);
return -1;
}