Penguin
Annotated edit history of strnlen(3) version 1 showing authors affecting page license. View with all changes included.
Rev Author # Line
1 perry 1 STRNLEN
2 !!!STRNLEN
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 CONFORMING TO
8 SEE ALSO
9 ----
10 !!NAME
11
12
13 strnlen - determine the length of a fixed-size string
14 !!SYNOPSIS
15
16
17 __#include
18 __''s''__, size_t__ ''maxlen''__);
19 __
20 !!DESCRIPTION
21
22
23 The __strnlen__ function returns the number of characters
24 in the string pointed to by ''s'', not including the
25 terminating '0' character, but at most ''maxlen''. In
26 doing this, __strnlen__ looks only at the first
27 ''maxlen'' characters at ''s'' and never beyond
28 ''s+maxlen''.
29 !!RETURN VALUE
30
31
32 The __strnlen__ function returns ''strlen(s)'', if
33 that is less than ''maxlen'', or ''maxlen'' if there
34 is no '0' character among the first ''maxlen'' characters
35 pointed to by ''s''.
36 !!CONFORMING TO
37
38
39 This function is a GNU extension.
40 !!SEE ALSO
41
42
43 strlen(3)
44 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.