Difference between revisions of "Strlen"

From SDU
Jump to: navigation, search
(New page: int strlen(string str) returns the length of a string eg. string myString; int i; myString = "hello"; i = strlen(myString); // i = 5)
(No difference)

Revision as of 06:42, 3 September 2008

int strlen(string str)

returns the length of a string

eg.

string myString;

int i;

myString = "hello";

i = strlen(myString);

// i = 5