> > plus functions or macros: > > > > uint16_t be16toh (uint16_t); > > uint16_t htobe16 (uint16_t); > > > > I could try to work on that if it seems useful to anyone else.
For the implementation of these functions, maybe the existing Gnulib module 'byteswap' is interesting. Bruno