lstrlen

Syntax

int lstrlen(lpString)

This function returns the length, in bytes, of lpString, not including the terminating null character.

All strings must be less than 64K in size.

Parameter Type/Description  

lpString LPSTR Points to a null-terminated string.  

Return Value

The return value specifies the length of lpString. There is no error return.