src/lib/serial.c
uint16_t unserial_uint16(uint8_t * * const ptr)
{
    uint16_t vo;

    memcpy(&vo, *ptr, sizeof vo);
    *ptr += sizeof vo;
    return ntohs(vo);
}
/*  unserial_uint16  --  Unserialise an unsigned 16 bit integer.  */
unserial_uint16  --  Unserialise an unsigned 16 bit integer.
unserial_uint16 -- Unserialise an unsigned 16 bit integer .
uint16_t unserial_uint16(uint8_t * * const ptr)
{
    uint16_t vo;
    memcpy(&vo, *ptr, sizeof vo);
    *ptr += sizeof vo;
    return ntohs(vo);
}
uint16_t unserial_uint16 ( uint8_t * * const ptr ) { uint16_t vo ; memcpy ( & vo , * ptr , sizeof vo ) ; * ptr += sizeof vo ; return ntohs ( vo ) ; }
unserial_uint16  --  Unserialise an unsigned 16 bit integer.
unserial_uint16 -- Unserialise an unsigned 16 bit integer .