stdout_fwrite()
#
stdout_fwrite()
writes a formatted message to the standard output stream using a specified priority level.
Prototype
int stdout_fwrite(
void *v,
int priority,
const char *fmt,
...
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Unused parameter, included for compatibility with log handler function signatures. |
|
|
The priority level of the log message, determining its severity. |
|
|
The format string specifying how subsequent arguments are formatted. |
|
|
Additional arguments corresponding to the format specifiers in |
Return Value
Returns 0
on success.
Notes
This function formats the message using vsnprintf()
and writes it to stdout
. It applies ANSI color codes based on the priority level.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples