Difference between revisions of "CHAR LOWER()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
m (Text replace - "lianjaapi.h" to "lianja_api.h")
 
Line 7: Line 7:
 
==SYNOPSIS==
 
==SYNOPSIS==
 
<code lang="c">
 
<code lang="c">
#include "lianjaapi.h"
+
#include "lianja_api.h"
  
 
char CHAR_LOWER(string)
 
char CHAR_LOWER(string)
Line 26: Line 26:
 
<code lang="c">
 
<code lang="c">
 
#include <stdio.h>
 
#include <stdio.h>
#include "lianjaapi.h"
+
#include "lianja_api.h"
  
 
lianjaapi_char_lower()
 
lianjaapi_char_lower()

Latest revision as of 06:45, 11 April 2013

PURPOSE

Convert character string to lower case

SYNONYM

api_char_lower()

SYNOPSIS

#include "lianja_api.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 "lianja_api.h"
 
lianjaapi_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()