NAME
valtoa - convert value to ASCII stringSYNOPSIS
#includechar *valtoa (buf, type, size) char *buf; int type; int size; DESCRIPTION
This function converts a binary value pointed to by buf to a character string. The type parameter names the data type of the data and is one of the data types named in the include file. The size parameter gives the size in bytes of the binary field that contains the value. The sizeof() function should be used to determine this value. EXAMPLES DATE datefld; short count; MONEY amount; long links; char *p; p = valtoa (&datefld, DATE_TYPE, sizeof(datefld)); p = valtoa (&count, INT_TYPE, sizeof(count)); p = valtoa (&links, INT_TYPE, sizeof(links)); p = valtoa (&amount, MONEY_TYPE, sizeof(amount)); WARNINGS The character string returned is contained in static data that is overwritten with every call.