Currently viewing: GipsySoft » Front Page» Articles

strltrim

Remove leading white space from a C style null terminated string.

char *strltrim( char *szText );

Return value

The return value is a pointer to the start of the string. The same pointer passed into the function.

Example

char szBuf[] = "  test";
strltrim( szBuf );
//	szBuf now contains the text "test"

 

Click to view the source code

See also strrtrim