[plug] C help (only slightly Linux)
Shackleton, Kevin
kshackleton at agric.wa.gov.au
Mon Jul 13 12:18:16 WST 1998
I sent this yesterday but it disappeared . .
I have a project to program an HP200LX to read GPS data files that look
like this:
$GPXTE,A,A,,,N*3C
$GPBWC,051808,,,,,,T,,M,,N,*12
$GPRMC,051809,A,2451.22,S,11343.69,E,001.6,284.7,030798,,*07
$GPRMB,A,,,,,,,,,,,,V*71
$GPR00,,,,,,,,,,,,,,*45
$GPGLL,2451.22,S,11343.69,E*7F
$PGRMZ,-499,f,2*33
I have a program for DOS in Pascal but the async library locks the HP.
A C
async library I've got works OK.
However I'm not a C programmer. I tried the P2C utility to convert my
program
to C but that didn't cut the mustard in this case.
The main trouble I'm having is finding the best way to cut out the bits
of data I want. In Pascal I'd do a copy() (which is a mid$() in Basic).
P2C helpfully converted copy() to strsub(), which does not exist in
Borland C.
Is anyone interested in a Borland C co-development (ie you do it, I take
the credit), or can someone recommend a C book that deals with string
handling - the couple I've got practically ignore this area.
K.
More information about the plug
mailing list