xref: /illumos-gate/usr/src/cmd/ipf/lib/getsumd.c (revision 3448eae2e9d99e7fadeb43056eb8e788c7ea93be)
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 #include "ipf.h"
12 
13 char *getsumd(sum)
14 u_32_t sum;
15 {
16 	static char sumdbuf[17];
17 
18 	sprintf(sumdbuf, "%#0x", sum);
19 	return sumdbuf;
20 }
21