Browse Source

Add strnlen() to libkern.

ok deraadt
OPENBSD_5_2
matthew 12 years ago
parent
commit
42e1ef3f21
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/lib/libc/string/strnlen.c

+ 5
- 1
src/lib/libc/string/strnlen.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: strnlen.c,v 1.3 2010/06/02 12:58:12 millert Exp $ */
/* $OpenBSD: strnlen.c,v 1.4 2012/04/26 01:22:31 matthew Exp $ */
/*
* Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com>
@ -18,7 +18,11 @@
#include <sys/types.h>
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif
size_t
strnlen(const char *str, size_t maxlen)


Loading…
Cancel
Save