Skip to content

Commit

Permalink
added gpx file reader
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jul 28, 2024
1 parent 18bd749 commit 8b755ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions hcxpcapngtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -5662,11 +5662,16 @@ return;
static bool processgpxfile(char *gpxinname)
{
static FILE *fh_gpxin;
static int gpxlen;
static char gpxline[GPX_MAX];

if((fh_gpxin = fopen(gpxinname, "r")) == NULL) return false;



while(1)
{
if((gpxlen = fgetline(fh_gpxin, GPX_MAX, gpxline)) == -1) break;
// printf("%s\n", gpxline);
}
fclose(fh_gpxin);
return true;
}
Expand Down
1 change: 1 addition & 0 deletions include/hcxpcapngtool.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@

#define ESSID_LEN_MAX 32
#define OPTIONLEN_MAX 1024
#define GPX_MAX 256
#define NMEA_MAX 256

#define MAX_INTERFACE_ID 255
Expand Down

0 comments on commit 8b755ad

Please sign in to comment.