UnQLite C/C++ API Reference - Output a message inside a foreign function.
int unqlite_context_output(unqlite_context *pCtx,const char *zString,int nLen);
int unqlite_context_output_format(unqlite_context *pCtx,const char *zFormat,...);
Output a message inside a foreign function.
Note that unqlite_context_output() accepts a third argument which is the length of the string to output. If the nLen argument is less than zero, then zString is read up to the first zero terminator. If nLen is non-negative, then it is the maximum number of bytes read from zString.
unqlite_context_output_format() is a work-alike of the "printf()" family of functions from the standard C library which is used to output a formatted string.
These routines must be called from the same thread in which the application-defined function is running.
Foreign function Call Context.
UNQLITE_OK is returned on success. Any other return value indicates failure.
Compile this C file for a smart introduction to these interfaces.