IsCharSpaceW function (shlwapi.h)

Determines whether a character represents a space.

Syntax

BOOL IsCharSpaceW(
  [in] WCHAR wch
);

Parameters

[in] wch

Type: TCHAR

A single character.

Return value

Type: BOOL

Returns TRUE if the character is a space; otherwise, FALSE.

Remarks

For those versions of Windows that do not include IsCharSpace in Shlwapi.h, IsCharSpaceW must be called directly from Shlwapi.dll (ordinal 29), using a WCHAR in the wch parameter. IsCharSpaceA is not available in versions of Windows that do not include IsCharSpace in Shlwapi.h.

Note

The shlwapi.h header defines IsCharSpace as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shlwapi.h
Library Shlwapi.lib
DLL Shlwapi.dll (version 5.0 or later)