xref: /titanic_50/usr/src/cmd/ipf/lib/common/getsumd.c (revision 381a2a9a387f449fab7d0c7e97c4184c26963abf)
1 /*
2  * Copyright (C) 1993-2001 by Darren Reed.
3  *
4  * See the IPFILTER.LICENCE file for details on licencing.
5  */
6 /*
7  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
8  * Use is subject to license terms.
9  */
10 
11 #pragma ident	"%Z%%M%	%I%	%E% SMI"
12 
13 #include "ipf.h"
14 
getsumd(sum)15 char *getsumd(sum)
16 u_32_t sum;
17 {
18 	static char sumdbuf[17];
19 
20 	sprintf(sumdbuf, "%#0x", sum);
21 	return sumdbuf;
22 }
23