Retnl()

From Recital Documentation Wiki
Jump to: navigation, search

PURPOSE

Return a long as a Recital numeric


SYNONYM

api_ret_nl()


SYNOPSIS

#include "dbapi.h"
 
int	_retnl(n)
 
<input parameters>
int	n;		/*Numeric value		*/
 
<output parameters>
none


DESCRIPTION

The function returns a long as a numeric value back to Recital.


EXAMPLE

The following example returns a value store as a long to a Recital numeric memory variable.

Example Recital program:

m_value=dtol(1234)
return.

Example 'C' function:

#include "dbapi.h"
 
dbapi_dtol()
{
    long	value;
 
    if ( _parinfo(1)  == API_NTYPE ) {
       value =  _parnl(1);
    } else {
       value = 0; 
    }
 
    _retnl( value );
}


SEE ALSO

_parinfa(), _parinfo(), parnd(), _parni(), _parl(), _retnd(), retni(), ISNUM()