Difference between revisions of "CHAR RTRIM()"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
Line 47: Line 47:
  
 
==SEE ALSO==
 
==SEE ALSO==
[[_parc()]], [[_parclen()]], [[_parcsiz()]], [[_parinfo()]], [[_retc()]], [[_retclen()]], [[ISCHAR()]], [[CHAR_ALLTRIM()]], [[CHAR_LOWER()]], [[CHAR_LPAD()]], [[CHAR_RPAD()]], [[CHAR_LTRIM()]], [[CHAR_STR()]], [[CHAR_UPPER()]], [[DATE_STOD()]]
+
[[_parc()]], [[_parclen()]], [[_parcsiz()]], [[_parinfo()]], [[_retc()]], [[_retclen()]], [[ISCHAR()]], [[CHAR_ALLTRIM()]], [[CHAR_LOWER()]], [[CHAR_LPAD()]], [[CHAR_LTRIM()]], [[CHAR_RPAD()]], [[CHAR_STR()]], [[CHAR_UPPER()]], [[DATE_STOD()]]
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:SDK]]
 
[[Category:SDK]]

Latest revision as of 11:12, 30 March 2009

PURPOSE

Remove leading blank spaces from a string


SYNONYM

api_char_rtrim()


SYNOPSIS

#include "dbapi.h"
 
char	*CHAR_RTRIM(string,)
 
<input parameters>
char	*string;		/* Address of a buffer containing character string	*/
 
<output parameters>
none


DESCRIPTION

The CHAR_RTRIM() function remove trailing blank spaces from the specified character string.


EXAMPLE

The following example trims all leading blank spaces from the first parameter passed..

#include "dbapi.h"
 
dbapi_char_rtrim()
{
    char	string[1025]
 
    if ( _parinfo(1) == API_CTYPE) {
       strcpy(string, CHAR_RTRIM( _parc(1) ) );
    } else {
       strcpy(string,"");
    }
 
    _retc( string );
}


SEE ALSO

_parc(), _parclen(), _parcsiz(), _parinfo(), _retc(), _retclen(), ISCHAR(), CHAR_ALLTRIM(), CHAR_LOWER(), CHAR_LPAD(), CHAR_LTRIM(), CHAR_RPAD(), CHAR_STR(), CHAR_UPPER(), DATE_STOD()