Prev Next

lstrlen info  Overview  Group

The lstrlen function returns the length in bytes (ANSI version) or characters (Unicode version) of the specified string (not including the terminating null character).

int lstrlen(

    LPCTSTR lpString 

// address of string to count

   );

Parameters

lpString
Points to a null-terminated string.

Return Values

The return value specifies the length of the string in bytes (ANSI version) or characters (Unicode version).

See Also

lstrcat, lstrcmp, lstrcmpi, lstrcpy

See: