print

Overview

Module that contains macro function that allow to use

  • jot_c_

  • jotln_c_

  • write_c_

  • writeln_c_

for print functions.

Example
#include "clingo/io/print.h"
#include "clingo/time/cTime.h"

#define pln_( ... ) pjotln_c_( xyz, 256, __VA_ARGS__ )

#define printfln_( ... ) println_c_( asdf, 256, __VA_ARGS__ )

int main( void )
{
   cRecorder* timeRec = &recorder_c_( 32 );
   write_time_c_( timeRec, local_time_c() );

   pln_( c_c( "hello World!" ), " today is ", timeRec, " that is ", true, "!" );

   printfln_( "{cs:q} today is {rec} ", c_c( "hello world!" ), timeRec,
              "that is {bool:Cc}!", true );
}

Functions

printfn_c_

#define printfn_c_( Prefix, RecSize, Func, ... )

Macro function that creates a recorder with Prefix as name and the RecSize. The recorder will be uesed with the Func function and the arguments.

pjot_c_

#define pjot_c_( Prefix, RecSize, ... )

Macro function that creates a recorder with Prefix as name and the RecSize. The recorder will be uesed with the jot_c_ function and the arguments.

pjotln_c_

#define pjotln_c_( Prefix, RecSize, ... )

Macro function that creates a recorder with Prefix as name and the RecSize. The recorder will be uesed with the jotln_c_ function and the arguments.

#define print_c_( Prefix, RecSize, ... )

Macro function that creates a recorder with Prefix as name and the RecSize. The recorder will be uesed with the write_c_ function and the arguments.

println_c_

#define println_c_( Prefix, RecSize, ... )

Macro function that creates a recorder with Prefix as name and the RecSize. The recorder will be uesed with the writeln_c_ function and the arguments.