CURR YTOS()
From Recital Documentation Wiki
Revision as of 11:08, 30 March 2009 by Yvonnemilne (Talk | contribs)
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 ); }