Files
heimdal/lib/roken/strnlen.c
Johan Danielsson 89c5cf1f40 strlen + strncpy - strcpy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@792 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-29 01:36:34 +00:00

16 lines
185 B
C

/* Copyright 1996 */
#ifdef HAVE_CONFIG_H
#include <config.h>
RCSID("$Id$");
#endif
int
strnlen(char *s, int len)
{
int i;
for(i = 0; i < len && s[i]; i++)
;
return i;
}