/*
 * redefines.c
 *
 * x-kernel v3.3
 *
 * Copyright (c) 1993,1991,1990,1996  Arizona Board of Regents
 *
 * $Log: redefines.c,v $
 * Revision 1.2  1996/01/30 20:52:53  slm
 * Updated copyright and version.
 *
 * Revision 1.1  1995/07/29  02:42:45  slm
 * Initial revision
 *
 * Revision 1.1.1.1  1994/11/12  19:13:42  hkaram
 * New branch
 *
 * Revision 1.1  1993/11/13  00:45:47  menze
 * Original version from UMass
 *
 * 1.1.1.1
 * 1993/06/09 00:48:16
 */

/*
 * file of functions which don't work with sun4 gcc unless
 * recompiled.
 */

#include <stdio.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <varargs.h>

char *inet_ntoa(in)
	struct in_addr in;
{
	static char b[18];
	register char *p;

	p = (char *)&in;
#define	UC(b)	(((int)b)&0xff)
	sprintf(b, "%d.%d.%d.%d", UC(p[0]), UC(p[1]), UC(p[2]), UC(p[3]));
	return (b);
}


