small fix

This commit is contained in:
2025-11-07 19:37:55 +01:00
parent 41b7075457
commit 3eb2f57103
3 changed files with 33 additions and 1 deletions

12
igc.c
View File

@@ -55,6 +55,14 @@ struct IGC_DataPoint* parse_datapoint(char* line)
return dp;
}
void parse_header_record(char* line)
{
if (strncmp(line, "HFDTEDATE", 9) == 0)
{
}
}
void parse_igc_file(FILE* fp)
{
size_t len = 0;
@@ -69,7 +77,11 @@ void parse_igc_file(FILE* fp)
// Doubly linked list of points (so theyre joined in chronological order; opens possibilities for analysis later)
// append_datapoint(dp);
break;
case HEADER:
parse_header_record(line);
break;
default:
printf("Unrecognized record type '%c'\n", line[0]);
break;
}
}