ISCHAR()

From Recital Documentation Wiki
Jump to: navigation, search

PURPOSE

Is the parameter a character string


SYNONYM

None


SYNOPSIS

#include "dbapi.h"
 
int	ISCHAR(order)
 
<input parameters>
int	order;		/* Placement in actual parameter list		*/
 
<output parameters>
none


DESCRIPTION

The function checks if the specified parameter is a character string. It returns 1 if true, or 0 if false. The order specifies the actual placements in the parameter list.


EXAMPLE

The following example returns .T. if the first parameter passed is a character string, or .F. otherwise.

Example Recital program:

m_values =  "five"
m_ischar=check_char(m_values)
return

Example 'C' function:

#include "dbapi.h"
 
check_char()
{
    _retl(ISCHAR(1));
}


SEE ALSO

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