Difference between revisions of "CHAR LTRIM()"
From Lianjapedia
Yvonne.milne (Talk | contribs) (→EXAMPLE) |
Yvonne.milne (Talk | contribs) m (Text replace - "lianjaapi.h" to "lianja_api.h") |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
==SYNOPSIS== | ==SYNOPSIS== | ||
<code lang="c"> | <code lang="c"> | ||
− | #include " | + | #include "lianja_api.h" |
char CHAR_LTRIM(string,) | char CHAR_LTRIM(string,) | ||
Line 25: | Line 25: | ||
<code lang="c"> | <code lang="c"> | ||
− | #include " | + | #include "lianja_api.h" |
lianjaapi_char_ltrim() | lianjaapi_char_ltrim() |
Latest revision as of 06:45, 11 April 2013
PURPOSE
Remove leading blank spaces from a string
SYNONYM
api_char_ltrim()
SYNOPSIS
#include "lianja_api.h" char CHAR_LTRIM(string,) <input parameters> char *string; /* Address of a buffer containing character string */ <output parameters> none
DESCRIPTION
The CHAR_LTRIM() function removes leading blank spaces from the specified character string.
EXAMPLE
The following example trims all leading blank spaces from the first parameter passed.
#include "lianja_api.h" lianjaapi_char_ltrim() { char string[1025] if ( _parinfo(1) == API_CTYPE) { strcpy(string, CHAR_LTRIM( _parc(1) ) ); } else { strcpy(string,""); } _retc( string ); }
SEE ALSO
_parc(), _parclen(), _parcsiz(), _parinfo(), _retc(), _retclen(), ISCHAR(), CHAR_ALLTRIM(), CHAR_LOWER(), CHAR_LPAD(), CHAR_RPAD(), CHAR_RTRIM(), CHAR_STR(), CHAR_UPPER(), DATE_STOD()