diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-01-09 02:49:09 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-01-09 02:49:09 +0000 |
commit | 7e855354b7794090e27a7056d465677e9aa688c9 (patch) | |
tree | 7fdb4d1cb736830873c1b6ee2efd61455f229e3a /hex.c | |
parent | 67f9dd1352082c4dac3c68e59bcfb519efb97f5f (diff) | |
download | gpsd-7e855354b7794090e27a7056d465677e9aa688c9.tar.gz |
Experimental code for sending hexified binary over the control channel.
Diffstat (limited to 'hex.c')
-rw-r--r-- | hex.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -52,7 +52,8 @@ char /*@ observer @*/ *gpsd_hexdump(const void *binbuf, size_t binbuflen) return hexbuf; } -int gpsd_hexpack(char *src, char *dst, int len){ +int gpsd_hexpack(char *src, char *dst, size_t len){ +/* hex2bin source string to destination - destination can be same as source */ int i, k, l; l = (int)(strlen(src) / 2); |