diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-11-02 05:55:49 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-11-02 05:55:49 +0000 |
commit | 267ecb38466e2843869ad1749a87ae8f9222b01a (patch) | |
tree | 7edb0195745827f0c9a42a60bdb3d1cb54e12d0c /bits.h | |
parent | 77e2a6c9899da36c4c8dadacc1751a3660894411 (diff) | |
download | gpsd-267ecb38466e2843869ad1749a87ae8f9222b01a.tar.gz |
Untested (but harmless if buggy) code to get subtype info from a Zodiac.
Diffstat (limited to 'bits.h')
-rw-r--r-- | bits.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -81,4 +81,5 @@ union long_double { | (session->outbuffer[2*(n)-1] << 8) \ | (session->outbuffer[2*(n)+0] << 16) \ | (session->outbuffer[2*(n)+1] << 24)) - +#define getstring(t, s, e) \ + (void)memcpy(t, session->outbuffer+2*(s)-2, 2*((e)-(s)+1)) |