Re: ntohl and others

Hans-Joachim Widmaier (hjwidmai@foxboro.com)
Thu, 16 Oct 1997 09:28:21 +0200


Magnus Ahltorp <map@stacken.kth.se> wrote:

> Why are ntohl and others defined as macros, and not inlines?

While we're at it: Why are the be32_to_cpu et al definitions
only available for the kernel? There are user space programs
who need them as well (e.g. mkfs, fsck), if they have to
deal with different-endian data.

--
Hans-Joachim