lstrlen

  int lstrlen(lpszString)    
  LPCTSTR lpszString; /* address of string to count */

The lstrlen function returns the length, in characters, of the specified string (not including the terminating null character).

Parameters

lpszString

Points to a null-terminated string.

Return Value

The return value specifies the length, in characters, of the string pointed to by the lpszString parameter.

See Also

lstrcpy