StrTrimA function

Removes specified leading and trailing characters from a string.

Syntax

BOOL StrTrimA(
  PSTR  psz,
  PCSTR pszTrimChars
);

Parameters

psz

Type: PTSTR

A pointer to the null-terminated string to be trimmed. When this function returns successfully, psz receives the trimmed string.

pszTrimChars

Type: PCTSTR

A pointer to a null-terminated string that contains the characters to trim from psz.

Return Value

Type: BOOL

TRUE if any characters were removed; otherwise, FALSE.

Requirements

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