TA-REF
trace2.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include "ocall_wrapper.h"
+ Include dependency graph for trace2.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 str.

Parameters
strstr is argument of type pointer.
Returns
string string length.

◆ tee_printf()

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

tee_printf() - For trace 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 prints the buffer value.

Parameters
fmtfmt is constant character argument of type pointer.
Returns
res Based on the condition check it will return string length else returns 0.