StrLen
This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.
Syntax
long strlen(char s[]);
Function
The functional result is the length of the stringsinbytes.
Parameters
string
Return Values
Length of the string in bytes.
// Fragment inside an event or function.
long length;
char buffer[100] = "CANalyzer";
length = strlen(buffer); // Expected length: 9 bytes, excluding the terminator.