summaryrefslogtreecommitdiff
path: root/bits.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-11-02 05:55:49 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-11-02 05:55:49 +0000
commit267ecb38466e2843869ad1749a87ae8f9222b01a (patch)
tree7edb0195745827f0c9a42a60bdb3d1cb54e12d0c /bits.h
parent77e2a6c9899da36c4c8dadacc1751a3660894411 (diff)
downloadgpsd-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bits.h b/bits.h
index 077c0c31..9e642b2a 100644
--- a/bits.h
+++ b/bits.h
@@ -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))