Formats a string variable for display in a field
| Call | |
| #include <vv_str.h> | |
| int dc_frst(stp, datap, dfldp, cvbufp) | |
|
UCHAR *stp |
Pointer to a string buffer |
| PTR datap | String variable containing string to be converted |
| DFIELDPTR dfldp | Pointer to a data field structure |
| PTR cvbufp | Pointer to a data conversion buffer |
| Returns | |
| 1 | Success. This is the only return value for this function |
| Description
dc_frst() prepares a string for display in a field. The string buffer is initialized to blanks and the string variable is copied to the string buffer. Field requirements are respected as follows:
Characters are copied into the string buffer for the length of the field. The variable string will be truncated if there are more characters than fit in the field. |
|
| Related Functions | |
| Cautions
dc_frst() assumes that the string buffer is large enough to hold the resulting string, including a null terminator '/0'. |
|