Difference between revisions of "CHAR LOWER()"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
Line 28: Line 28:
 
The following example converts the first parameter passed to lower case.
 
The following example converts the first parameter passed to lower case.
  
#include <stdio.h>
+
 
 
<code lang="c">
 
<code lang="c">
 +
#include <stdio.h>
 
#include "dbapi.h"
 
#include "dbapi.h"
  

Latest revision as of 11:15, 30 March 2009

PURPOSE

Convert character string to lower case


SYNONYM

api_char_lower()


SYNOPSIS

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


DESCRIPTION

The CHAR_LOWER() function converts the specified character string to lower case.


EXAMPLE

The following example converts the first parameter passed to lower case.


#include <stdio.h>
#include "dbapi.h"
 
dbapi_char_lower()
{
    char	string[1025]
 
    if (_parinfo(1) == API_CTYPE) {
       strcpy(string, CHAR_LOWER( _parc(1) ) );
    } else {
       strcpy(string,"");
    }
 
    _retc( string );
}


SEE ALSO

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