C/C++ Example Procedure: strlen - Length of ASCII c-string

See related: C/C++ Examples

int strlen (const char * str)
{
	int length = 0;

	while( *str++ )
		length++;

	return length;
}

Cookies are simple text files stored on the user's computer. They are used for adding features and security to this site.
OK