VALTOA C-3





Copyright (C) 1994-95 Conetic Software Systems, Inc. All names, products, and services mentioned are the trademarks of their respective organizations.



NAME


valtoa - convert value to ASCII string

SYNOPSIS


#include 

char *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.