src/lib/serial.c
int16_t unserial_int16(uint8_t * * const ptr)
{
    int16_t vo;

    memcpy(&vo, *ptr, sizeof vo);
    *ptr += sizeof vo;
    return ntohs(vo);
}
/*  unserial_int16  --  Unserialise a signed 16 bit integer.  */
unserial_int16  --  Unserialise a signed 16 bit integer.
unserial_int16 -- Unserialise a signed 16 bit integer .
int16_t unserial_int16(uint8_t * * const ptr)
{
    int16_t vo;
    memcpy(&vo, *ptr, sizeof vo);
    *ptr += sizeof vo;
    return ntohs(vo);
}
int16_t unserial_int16 ( uint8_t * * const ptr ) { int16_t vo ; memcpy ( & vo , * ptr , sizeof vo ) ; * ptr += sizeof vo ; return ntohs ( vo ) ; }
unserial_int16  --  Unserialise a signed 16 bit integer.
unserial_int16 -- Unserialise a signed 16 bit integer .