lstrlen

2.x

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

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

Parameters

lpszString

Points to a null-terminated string. This string must be less than 64K in size.

Return Value

The return value specifies the length, in bytes, of the string pointed to by the lpszString parameter. There is no error return.

See Also

lstrcpy