delorie.com/djgpp/doc/libc/libc_598.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <netinet/in.h> unsigned long ntohl(unsigned long val); |
This function converts from network formatted longs to host formatted longs. For the i386 and higher processors, this means that the bytes are swapped from 1234 order to 4321 order.
The host-order value.
ANSI/ISO C | No |
POSIX | No |
ip = ntohl(packet.ipaddr); |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |