SDU
Personal tools

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

This page was last modified 15:52, 3 September 2008.  This page has been accessed 1,188 times.  Content is available under Attribution-Noncommercial-Share Alike 3.0 UnportedDisclaimers