bindrv_nexttoken
bindrv_nexttoken |
Purpose
Synopsis
int bindrv_nexttoken(s_bindrvctx bctx);
Argument
bctx
|
A BinDrv reader context
|
Return value
Type code
for the next token or a negative value in case of a read error (end of stream). Possible values are:
BINDRV_TYP_INT
|
|
BINDRV_TYP_DATA
|
|
BINDRV_TYP_REAL
|
|
BINDRV_TYP_STR
|
|
BINDRV_TYP_BOOL
|
|
BINDRV_TYP_CTRL
|
|
BINDRV_TYP_LONG
|
Further information
This routine does not return the token itself but indicates which function to use for reading it. For instance, if the return value is
BINDRV_TYP_INT, the function
bindrv_getint has to be called to retrieve an integer value.
Related topics
bindrv_getint,
bindrv_getdata,
bindrv_getreal,
bindrv_getstring,
bindrv_getbool,
bindrv_getctrl,
bindrv_getlong.