The lstrlen (alias strlen) function returns the length of a string in bytes.
int lstrlen( LPCSTR lpString )
the length of the string (not including zero termination).
EX1
void lstrlen_ex1() { string str1 = "Hello World!"; int len = lstrlen(str1); // len is 12 (the length of str1). out_int("The length is ", len); }
strlen
origin.h