Strlen

From SDU
Jump to: navigation, search
To make corrections or additions to this article, select the edit tab above.
To discuss or ask questions about this article, select the discussion tab above.

int strlen(string str)

returns the length of a string

eg.

string myString;

int i;

myString = "hello";

i = strlen(myString);

// i = 5