Converts a string in a field to an integer variable
| Call | |
| #include <vv_int.h> | |
| int dc_toint(stp, datap, dfldp, cvbufp) | |
|
UCHAR *stp |
Pointer to string with user's field input |
| PTR datap | Pointer to variable to receive converted field input |
| 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_toint() makes a copy of the string in the conversion buffer. All embedded blanks and thousands separators are deleted from the buffer, and the resulting string is converted to an integer value. The integer value is then placed in the data variable. |
|
| Related Functions | |
| Cautions
No error checking is performed on the input string. The function dc_toint() assumes that vf_int() has already validated the string. |
|