GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
STRLEN(3) FreeBSD Library Functions Manual STRLEN(3)

strlen, strnlen
find length of string

Standard C Library (libc, -lc)

#include <string.h>
size_t
strlen(const char *s);
size_t
strnlen(const char *s, size_t maxlen);

The strlen() function computes the length of the string s. The strnlen() function attempts to compute the length of s, but never scans beyond the first maxlen bytes of s.

The strlen() function returns the number of characters that precede the terminating NUL character. The strnlen() function returns either the same result as strlen() or maxlen, whichever is smaller.

string(3), wcslen(3), wcswidth(3)

The strlen() function conforms to ISO/IEC 9899:1990 (“ISO C90”). The strnlen() function conforms to IEEE Std 1003.1-2008 (“POSIX.1”).
February 28, 2009 FreeBSD 12.0-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.