Initializing help system before first use

bindrv_nexttoken

bindrv_nexttoken


Purpose
Get the type of the next token to read.
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 
An integer
BINDRV_TYP_DATA 
A binary data block
BINDRV_TYP_REAL 
A real (as a double)
BINDRV_TYP_STR 
A text string
BINDRV_TYP_BOOL 
A Boolean
BINDRV_TYP_CTRL 
A control token
BINDRV_TYP_LONG 
A long integer (64bit)
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