stdout_fwrite()

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

v

void *

Unused parameter, included for compatibility with log handler function signatures.

priority

int

The priority level of the log message, determining its severity.

fmt

const char *

The format string specifying how subsequent arguments are formatted.

...

variadic

Additional arguments corresponding to the format specifiers in fmt.


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