Skip to content

Commit

Permalink
Comment what gpsd_packetdump() does
Browse files Browse the repository at this point in the history
  • Loading branch information
garyemiller committed Mar 29, 2016
1 parent b6cdab9 commit ab6cc0b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hex.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@

#include "gpsd.h"

/*
* gpsd_packetdump()
*
* if binbuf is printable, just return a copy of it
* otherwise) convert a binary string to a hex string and return that
*
* *scbuf -- the buffer to fill with hex
* scbuflen -- sizeof(scbuf)
* *binbuf -- the binary to convert to hex and place in scbuf
* binbuflen -- sizeof(binbuf)
*/

const char *gpsd_packetdump(char *scbuf, size_t scbuflen,
char *binbuf, size_t binbuflen)
{
Expand Down

0 comments on commit ab6cc0b

Please sign in to comment.