Functions
stdio-tm.h File Reference

Transactional wrappers for interfaces of <stdio.h>. More...

#include <picotm/compiler.h>
#include <picotm/config/picotm-libc-config.h>
#include <stdarg.h>
#include <stdio.h>

Functions

PICOTM_NOTHROW int snprintf_tm (char *restrict s, size_t n, const char *restrict format,...)
 
PICOTM_NOTHROW int sscanf_tm (const char *restrict s, const char *restrict format,...)
 
PICOTM_NOTHROW int vsnprintf_tm (char *restrict s, size_t n, const char *restrict format, va_list ap)
 
PICOTM_NOTHROW int vsscanf_tm (const char *restrict s, const char *restrict format, va_list arg)
 

Function Documentation

◆ snprintf_tm()

PICOTM_NOTHROW int snprintf_tm ( char *restrict  s,
size_t  n,
const char *restrict  format,
  ... 
)

A transaction-safe implementation of snprintf().

◆ sscanf_tm()

PICOTM_NOTHROW int sscanf_tm ( const char *restrict  s,
const char *restrict  format,
  ... 
)

A transaction-safe implementation of sscanf().

◆ vsnprintf_tm()

PICOTM_NOTHROW int vsnprintf_tm ( char *restrict  s,
size_t  n,
const char *restrict  format,
va_list  ap 
)

A transaction-safe implementation of vsnprintf().

◆ vsscanf_tm()

PICOTM_NOTHROW int vsscanf_tm ( const char *restrict  s,
const char *restrict  format,
va_list  arg 
)

A transaction-safe implementation of vsscanf().