contents   index   previous   next



Clib.strlen()

syntax:

Clib.strlen(str)

where:

str - string to find length of.

 

return:

number - the number of characters in str, not including the terminating null character.

 

description:

This method returns the length of parameter str. The length property of JavaScript strings is similar. The difference between Clib.strlen(str) and String length is that length counts null characters as part of a string, whereas Clib.strlen() considers them markers indicating the end of the string and does not include them or any characters which follow them as part of a string.

 

The return is the number of characters, bytes, in str, starting from the character at str[0] and ending before the terminating null byte.

 

see:

String length

 

 


Clib.strlwr()