[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] avr-libc: ntohs et al.
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] avr-libc: ntohs et al. |
Date: |
Fri, 29 Sep 2006 21:39:09 +0200 (MET DST) |
"Shaun Jackman" <address@hidden> wrote:
> Does avr-libc implement ntohs and friends?
No, as they technically belong to the networking suite. They can
traditionally be found in the <arpa/inet.h> or <netinet/in.h> header
files.
If you're rather looking for *byte swapping* macros, this might be a
worthwhile addition to the library. Keep in mind that the macros
you've been asking for are not necessarily that: they do only swap
bytes on architectures that don't work in network (aka. big endian)
byte order natively.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)