WriteFmtLn
- Macro
- August 22, 2025
Table of Contents
WriteFmtLn
WriteFmtLn
Description
Write formatted output to the standard output stream (stdout
) followed by a newline. This is a convenience macro calling FWriteFmtLn with stdout
.
Parameters
Name | Direction | Description |
---|---|---|
fmtstr | in | Format string with {} placeholders. should be wrapped with variable . |
Success
Placeholders in fmtstr
are replaced by the passed arguments, and the resulting formatted string followed by a newline is written to stdout
.
Failure
Failure might occur during memory allocation for the temporary string or during the write operation to stdout
(fputs
or fputc
). Errors from StrWriteFmtInternal
(logging messages) might also occur.
Usage example (Cross-references)
- In
ElfInfo.c:376
:
);
WriteFmtLn(
"ElfHeader64 {{\n"
" meta: {{class: {}, encoding: {}, version: {}, os_abi: {}}}\n"
- In
Main.c:15
:
if (rule_name.length) {
WriteFmtLn("Got Rule : {}", rule_name);
StrDeinit(&rule_name);
}