MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / StrLTrim

Function StrLTrim

src/Helpers.c:1180–1192  ·  view source on GitHub ↗

============================================================================= StrLTrim()

Source from the content-addressed store, hash-verified

1178// StrLTrim()
1179//
1180BOOL StrLTrim ( LPWSTR pszSource, LPCWSTR pszTrimChars )
1181{
1182 LPWSTR psz;
1183 if ( !pszSource || !*pszSource ) {
1184 return FALSE;
1185 }
1186 psz = pszSource;
1187 while ( StrChrI ( pszTrimChars, *psz ) ) {
1188 psz++;
1189 }
1190 MoveMemory ( pszSource, psz, sizeof ( WCHAR ) * ( lstrlen ( psz ) + 1 ) );
1191 return TRUE;
1192}
1193
1194
1195//=============================================================================

Callers 1

ParseCommandLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected