Phil Sutter <[email protected]> wrote: > - BYTEORDER_HOST_ENDIAN, 1, buf); > + BYTEORDER_HOST_ENDIAN, > + sizeof(char) * BITS_PER_BYTE, buf);
You can omit the sizeof(char), its always 1. Otherwise this loooks good to me.
Phil Sutter <[email protected]> wrote: > - BYTEORDER_HOST_ENDIAN, 1, buf); > + BYTEORDER_HOST_ENDIAN, > + sizeof(char) * BITS_PER_BYTE, buf);
You can omit the sizeof(char), its always 1. Otherwise this loooks good to me.