lstrlenA function

Determines the length of the specified string (not including the terminating null character).

Syntax

int lstrlenA(
  LPCSTR lpString
);

Parameters

lpString

Type: LPCTSTR

The null-terminated string to be checked.

Return Value

Type: int

The function returns the length of the string, in characters. If lpString is NULL, the function returns 0.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winbase.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

See Also

Conceptual

Reference

StringCbLength

StringCchLength

Strings

lstrcat

lstrcmp

lstrcmpi

lstrcpy