Print a formatted string to debug output, C/C++ style escape sequences can be used in the format template string as well as in argument strings, control chars will be filtered using the active filter mode. Note that output will stop at the first CHR$(0) found, as output is done through C/C++ stdio functions. This means also, that you need to use the C/C++ style (printf()) formatting tokens, not the PRINT USING tokens.
SYNTAX:
LogFmt fmt$, vargs$
INPUTS:
fmt$ (STRING)
- Any string literal or variable, which can contain escape sequences (eg. \t, \n, \x22 etc.) and formatting tokens (eg. %s, %ld, %08X etc.) known to C/C++.
vargs$ (STRING)
- A variable args string made with the SUBs/FUNCTIONs provided in the QB-StdLibs\qbstdarg.bm library file, which must contain all required arguments in the very same order as the respective formatting tokens appear in the given format template string.
ERRORS:
- If fmt$ is empty or vargs$ is not a valid va_list string, then this subroutine will do nothing, not even writing a empty line to output.