TA-REF
trace.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include "ocall_wrapper.h"
+ Include dependency graph for trace.c:

Functions

static unsigned int _strlen (const char *str)
 
int tee_printf (const char *fmt,...)
 

Function Documentation

◆ _strlen()

static unsigned int _strlen ( const char *  str)
inlinestatic

_strlen() - calculate the length of characters in a str.

Parameters
strstr is an argument of type pointer.
Returns
string length on success.

◆ tee_printf()

int tee_printf ( const char *  fmt,
  ... 
)

tee_printf() - For tracing GP API.

Initializes ap variable. Formats data under control of the format control string and stores the result in buf and ends the processing of ap. Finally print the buffer value.

Parameters
fmtfmt is a constant character argument of type pointer.
Returns
buffer If successfully executed, else error occured.