Home | History | Annotate | Download | only in string
History log of /src/lib/libc/string/wcsnlen.c
RevisionDateAuthorComments
 1.2  15-Oct-2016  kamil branches: 1.2.2;
Add NetBSD CVS Id on top of the wcsnlen.c file
 1.1  15-Oct-2016  kamil Import wcsnlen(3) to libc

The wcsnlen(3) function conforms to POSIX.1-2008 and is an addition to the
ISO C standard.

size_t wcsnlen(const wchar_t *s, size_t maxlen);

The wcsnlen(3) function computes the number of wide-characters in a wide-
-string to which s points, not including NULL terminating wide-character
code and checking no more than maxlen wide-characters. This function never
examines wide-characters beyond a wide-string of maxlen size.


This function is a safer version of wcslen(3):

size_t wcslen(const wchar_t *s);


Update STANDARDS section of wmemchr(3) describing wide-character functions.
 1.2.2.2  04-Nov-2016  pgoyette Sync with HEAD
 1.2.2.1  15-Oct-2016  pgoyette file wcsnlen.c was added on branch pgoyette-localcount on 2016-11-04 14:48:53 +0000

RSS XML Feed