CURR YTOS()

From Recital Documentation Wiki
Jump to: navigation, search

PURPOSE

Return a currency value as a character string


SYNONYM

api_curr_ytos()


SYNOPSIS

#include "dbapi.h"
 
char	*CURR_YTOS(currency)
 
<input parameters>
CURRENCY	currency;		/* Recital currency		*/
 
<output parameters>
none


DESCRIPTION

CURR_YTOS() function will return the given currency value as a character.


EXAMPLE

The following example converts a currency value to a character pointer.

#include "dbapi.h"
 
dbapi_curr_ytos()
{
    char		curr[21];
 
    if (_parinfo(1) != API_YTYPE) {
       _retc(""):
    }
 
    strcpy(curr, CURR_YTOS(_pards(1) );
 
    _retc( curr );
}


SEE ALSO

_parys(), _retys(), ISCURRENCY(), CURR_STOY()