2 * Copyright 2006, Sine Nomine Associates and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 /* strnlen.c - fixed length string length */
12 #include <afsconfig.h>
13 #include <afs/param.h>
16 #include <sys/types.h>
22 afs_strnlen(char * buf, size_t len)
26 for (i = 0; i < len; i++) {