Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

strlen - get length of string

&pagelevel(4)&pagelevel

Syntax

#include <string.h>

size_t strlen(const char *s);

Description

strlen() determines the length of string s, not including the terminating null byte (\0).
BS2000
Whereas the sizeof operator always returns the defined length, strlen() calculates the
actual number of bytes in a string. The newline (\n) character, if present, is also included.
(End)

Return val.

Length of the string s

if successful. The terminating null byte is not included in the count.

Notes

A string terminated with the null byte (\0) is expected as the argument.