(strnlen): update prototype

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6151 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-05-07 23:56:25 +00:00
parent 3b54be10c8
commit db544b1edc

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 1996, 1997 Kungliga Tekniska H<>gskolan
* Copyright (c) 1995 - 1999 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -43,10 +43,11 @@ RCSID("$Id$");
#include "roken.h"
int
strnlen(char *s, int len)
size_t
strnlen(const char *s, size_t len)
{
int i;
size_t i;
for(i = 0; i < len && s[i]; i++)
;
return i;