* Copyright (c) 1983 Regents of the University of California.
* %sccs.include.redist.c%
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid
[] = "@(#)inet_ntoa.c 5.5 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
* Convert network-format internet address
* to base 256 d.d.d.d representation.
#define UC(b) (((int)b)&0xff)
sprintf(b
, "%d.%d.%d.%d", UC(p
[0]), UC(p
[1]), UC(p
[2]), UC(p
[3]));