summaryrefslogtreecommitdiff
path: root/src/arpa/inet/ntohl.c
blob: 25fa650d38a7052d079be755cc9c55059198c3d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#if 0

#include <arpa/inet.h>

uint32_t ntohl(uint32_t netlong)
{
	union {
		uint32_t u;
		unsigned char c[sizeof(uint32_t)];
	} u = { netlong };

	return (u.c[0] << 24) | (u.c[1] << 16) | (u.c[2] << 8) | u.c[3];
}


#endif