dc_frch()

Converts a character variable to a string for display in a field

Call  
#include <vv_char.h>
int dc_frch(stp, datap, dfldp, cvbufp)

UCHAR *stp

Pointer to a string buffer

PTR datap Pointer to data variable containing a character
DFIELDPTR dfldp Pointer to a data field structure
PTR cvbufp Pointer to a data conversion buffer
Returns  
1 The character value was successfully converted to a string. This is the only return value for this function.
Description

dc_frch() first copies the protected characters from the specified field's field picture to the string buffer. The character in the data variable is then copied to the appropriate position in the string.

Related Functions

dc_toch()

Cautions

This function assumes that the string buffer is large enough to hold the resulting string, including a null terminator '/0'.


Home Contents Previous Next