Sign in
plan9port
/
plan9
/
e31375ac4e12494f6a085cb2c9d51e9e61dd8216
/
.
/
src
/
libauthsrv
/
nvcsum.c
blob: da4115a6be697b559990ec3797c00cc661a78f9b [
file
] [
log
] [
blame
]
#include
<u.h>
#include
<libc.h>
#include
<authsrv.h>
uchar
nvcsum
(
void
*
vmem
,
int
n
)
{
uchar
*
mem
,
sum
;
int
i
;
sum
=
9
;
mem
=
vmem
;
for
(
i
=
0
;
i
<
n
;
i
++)
sum
+=
mem
[
i
];
return
sum
;
}