Converts a string in a field to a long integer variable
| Call | |
| #include <vv_long.h> | |
| int dc_tolong(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_tolong() makes a copy of the input string in the conversion buffer. All embedded blanks and thousands separators are deleted from the buffer, and the resulting string is converted to a long integer value. The long integer value is then placed in the data variable. |
|
| Related Functions | |
| Cautions
No error checking is performed on the input string. dc_tolong() assumes that vf_long() has already validated the string. |
|