(strnlen): update prototype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6151 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -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).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -43,10 +43,11 @@ RCSID("$Id$");
|
|||||||
|
|
||||||
#include "roken.h"
|
#include "roken.h"
|
||||||
|
|
||||||
int
|
size_t
|
||||||
strnlen(char *s, int len)
|
strnlen(const char *s, size_t len)
|
||||||
{
|
{
|
||||||
int i;
|
size_t i;
|
||||||
|
|
||||||
for(i = 0; i < len && s[i]; i++)
|
for(i = 0; i < len && s[i]; i++)
|
||||||
;
|
;
|
||||||
return i;
|
return i;
|
||||||
|
Reference in New Issue
Block a user