xref: /illumos-gate/usr/src/cmd/ipf/lib/getsumd.c (revision 8119dad84d6416f13557b0ba8e2aaf9064cbcfd3)
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