OneCompiler

Exposing Debug_Log - Library

135

// Online C compiler to run C program online
#include <stdio.h>

typedef struct
{
int (Debug_Printf)(const char fmtStr, ...);
int val;
} Interface;

//int print_check(int level, const char* fmtStr, ...)

Interface iface =
{
.Debug_Printf = printf,
.val = 1
};

int main() {

// Write C code here
printf("Hello ");
iface.Debug_Printf("Aalok\n");

return 0;

}