WriteFmtLn

Table of Contents

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

NameDirectionDescription
fmtstrinFormat 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)

    );
    
    WriteFmtLn(
    "ElfHeader64 {{\n"
    "  meta: {{class: {}, encoding: {}, version: {}, os_abi: {}}}\n"
    
    if (rule_name.length) {
    WriteFmtLn("Got Rule : {}", rule_name);
    StrDeinit(&rule_name);
    }

Share :

Related Posts

WriteFmt

WriteFmt Description Write formatted output to the standard output stream (stdout). This is a convenience macro calling FWriteFmt with stdout.

Read More

FWriteFmtLn

FWriteFmtLn Description Write formatted output to a file stream followed by a newline character. This macro internally uses StrWriteFmtInternal to format the string and then writes it to the stream followed by a newline.

Read More

FWriteFmt

FWriteFmt Description Write formatted output to a file stream. This macro internally uses StrWriteFmtInternal to format the string and then writes it to the stream.

Read More