dc_frcheck()

Converts a check box variable to a string for display in a field

Call  
#include <vv_check.h>
int dc_frcheck(stp, datap, dfldp, cvbufp)

UCHAR *stp

Pointer to a string buffer

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

dc_frcheck() first copies the protected characters from the specified field's field picture to the string buffer. If the data variable is FALSE, a " " is inserted into the buffer; otherwise, an "X" is copied.

Related Functions

dc_tocheck()

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