opendir change: refinement
[minix.git] / servers / inet / generic / io.c
blob7b861d20a33197cdd4aadf413f404af8eaab68c5
1 /*
2 io.c
4 Copyright 1995 Philip Homburg
5 */
7 #include <stdlib.h>
9 #include "inet.h"
10 #include "io.h"
12 void writeIpAddr(addr)
13 ipaddr_t addr;
15 #define addrInBytes ((u8_t *)&addr)
17 printf("%d.%d.%d.%d", addrInBytes[0], addrInBytes[1],
18 addrInBytes[2], addrInBytes[3]);
19 #undef addrInBytes
22 void writeEtherAddr(addr)
23 ether_addr_t *addr;
25 #define addrInBytes ((u8_t *)addr->ea_addr)
27 printf("%x:%x:%x:%x:%x:%x", addrInBytes[0], addrInBytes[1],
28 addrInBytes[2], addrInBytes[3], addrInBytes[4], addrInBytes[5]);
29 #undef addrInBytes
33 * $PchId: io.c,v 1.6 1998/10/23 20:24:34 philip Exp $