VISUAL PAYMENTS
vpParseFields()
M
X
800 SERIES PROGRAMMERS GUIDE 257
vpParseFields()
Parses the input buffer into the field arrays. The STX should not be in the input
buffer.
Prototype
int vpParseFields(char *pchInBuf, vp_field_t *pszField, char *pszSep);
typedef struct {
key[];
value[];
} vp_field_t;
Parameters
Return Values
First index usually returns the command in key, with no value.
pchInBuf Input Data Stream to parse
pszField Pointer to array of vp_field_t to store parsed strings
chSep Pointer to field separator character string