Parameters & Returns
Parameters
Returns
Quick Summary
Returns the length of a string in characters.
Takes str (string to measure).
Returns the number of characters in the string.
Technical Exegesis...
Returns the number of characters in the string. Returns 0 if the string is empty or null.
Counts all characters including spaces and special characters. Does not include the null terminator. Useful for validation, buffer sizing, or iterating through string characters.