1 /* Portable version of strnlen.
2 This function is in the public domain. */
6 @deftypefn Supplemental size_t strnlen (const char *@var{s}, size_t @var{maxlen})
8 Returns the length of @var{s}, as with @code{strlen}, but never looks
9 past the first @var{maxlen} characters in the string. If there is no
10 '\0' character in the first @var{maxlen} characters, returns
22 strnlen (const char *s
, size_t maxlen
)
26 for (i
= 0; i
< maxlen
; ++i
)
This page took 0.030664 seconds and 4 git commands to generate.