Get the actual args part for use as "va_list" parameter. As the vargs$ combines more properties than just the variable args, you need to call this function to extract the actual args part, which is then passed to the C/C++ function.
SYNTAX:
args$ = GetArgs$ (vargs$)
INPUTS:
vargs$ (STRING variable)
- This must be any previously initialized va_list string variable.
RESULT:
args$ (STRING)
- The actual args part, which represents the va_list you will pass to the C/C++ function, or the string "invalid" on failure.
ERRORS:
- If vargs$ is no valid (initialized) va_list string, then this function returns the string "invalid", you should check for this condition prior passing the args$ to the C/C++ function. Look at the function VSPrintF$() in the qbstdio.bm file for an example.
- Note that the returned args$ may also be empty, if the passed in vargs$ is initialized but no arguments were set up in it. This may also be an error condition, if the C/C++ function expects some arguments, so always make sure to properly setup the arguments as needed by the C/C++ function you intend to call with the va_list !!