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