picotm  0.7.0
Functions
string-tm.h File Reference

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

#include <picotm/compiler.h>
#include <string.h>

Functions

PICOTM_NOTHROW void * memccpy_tm (void *restrict dest, const void *restrict src, int c, size_t n)
 
PICOTM_NOTHROW void * memchr_tm (const void *s, int c, size_t n)
 
PICOTM_NOTHROW int memcmp_tm (const void *s1, const void *s2, size_t n)
 
PICOTM_NOTHROW void * memcpy_tm (void *restrict dest, const void *restrict src, size_t n)
 
PICOTM_NOTHROW void * memmove_tm (void *dest, const void *src, size_t n)
 
PICOTM_NOTHROW void * memset_tm (void *s, int c, size_t n)
 
PICOTM_NOTHROW void * memrchr_tm (const void *s, int c, size_t n)
 
PICOTM_NOTHROW void * rawmemchr_tm (const void *s, int c)
 
PICOTM_NOTHROW char * stpcpy_tm (char *restrict dest, const char *restrict src)
 
PICOTM_NOTHROW char * stpncpy_tm (char *restrict dest, const char *restrict src, size_t n)
 
PICOTM_NOTHROW char * strcat_tm (char *restrict dest, const char *restrict src)
 
PICOTM_NOTHROW char * strchr_tm (const char *s, int c)
 
PICOTM_NOTHROW int strcmp_tm (const char *s1, const char *s2)
 
PICOTM_NOTHROW int strcoll_l_tm (const char *s1, const char *s2, locale_t locale)
 
PICOTM_NOTHROW char * strcpy_tm (char *restrict dest, const char *restrict src)
 
PICOTM_NOTHROW size_t strcspn_tm (const char *s, const char *reject)
 
PICOTM_NOTHROW char * strdup_tm (const char *s)
 
PICOTM_NOTHROW char * __strerror_r_gnu_tm (int errnum, char *buf, size_t buflen)
 
PICOTM_NOTHROW int __strerror_r_posix_tm (int errnum, char *buf, size_t buflen)
 
PICOTM_NOTHROW size_t strlen_tm (const char *s)
 
PICOTM_NOTHROW char * strncat_tm (char *restrict dest, const char *restrict src, size_t n)
 
PICOTM_NOTHROW int strncmp_tm (const char *s1, const char *s2, size_t n)
 
PICOTM_NOTHROW char * strncpy_tm (char *restrict dest, const char *restrict src, size_t n)
 
PICOTM_NOTHROW char * strndup_tm (const char *s, size_t n)
 
PICOTM_NOTHROW size_t strnlen_tm (const char *s, size_t maxlen)
 
PICOTM_NOTHROW char * strpbrk_tm (const char *s, const char *accept)
 
PICOTM_NOTHROW char * strrchr_tm (const char *s, int c)
 
PICOTM_NOTHROW size_t strspn_tm (const char *s, const char *accept)
 
PICOTM_NOTHROW char * strstr_tm (const char *haystack, const char *needle)
 
PICOTM_NOTHROW char * strtok_r_tm (char *restrict str, const char *restrict delim, char **restrict saveptr)
 

Function Documentation

◆ __strerror_r_gnu_tm()

PICOTM_NOTHROW char* __strerror_r_gnu_tm ( int  errnum,
char *  buf,
size_t  buflen 
)

Variant of __strerror_r_gnu_tx() that operates on transactional memory.

Warning
This is an internal interface. Call strerror_r_tm() instead.

◆ __strerror_r_posix_tm()

PICOTM_NOTHROW int __strerror_r_posix_tm ( int  errnum,
char *  buf,
size_t  buflen 
)

Variant of __strerror_r_posix_tx() that operates on transactional memory.

Warning
This is an internal interface. Call strerror_r_tm() instead.

◆ memccpy_tm()

PICOTM_NOTHROW void* memccpy_tm ( void *restrict  dest,
const void *restrict  src,
int  c,
size_t  n 
)

Variant of memccpy_tx() that operates on transactional memory.

◆ memchr_tm()

PICOTM_NOTHROW void* memchr_tm ( const void *  s,
int  c,
size_t  n 
)

Variant of memcchr_tx() that operates on transactional memory.

◆ memcmp_tm()

PICOTM_NOTHROW int memcmp_tm ( const void *  s1,
const void *  s2,
size_t  n 
)

Variant of memcmp_tx() that operates on transactional memory.

◆ memcpy_tm()

PICOTM_NOTHROW void* memcpy_tm ( void *restrict  dest,
const void *restrict  src,
size_t  n 
)

Variant of memcpy_tx() that operates on transactional memory.

◆ memmove_tm()

PICOTM_NOTHROW void* memmove_tm ( void *  dest,
const void *  src,
size_t  n 
)

Variant of memmove_tx() that operates on transactional memory.

◆ memrchr_tm()

PICOTM_NOTHROW void* memrchr_tm ( const void *  s,
int  c,
size_t  n 
)

Variant of memrchr_tx() that operates on transactional memory.

◆ memset_tm()

PICOTM_NOTHROW void* memset_tm ( void *  s,
int  c,
size_t  n 
)

Variant of memset_tx() that operates on transactional memory.

◆ rawmemchr_tm()

PICOTM_NOTHROW void* rawmemchr_tm ( const void *  s,
int  c 
)

Variant of rawmemchr_tx() that operates on transactional memory.

◆ stpcpy_tm()

PICOTM_NOTHROW char* stpcpy_tm ( char *restrict  dest,
const char *restrict  src 
)

Variant of stpcpy_tx() that operates on transactional memory.

◆ stpncpy_tm()

PICOTM_NOTHROW char* stpncpy_tm ( char *restrict  dest,
const char *restrict  src,
size_t  n 
)

Variant of stpncpy_tx() that operates on transactional memory.

◆ strcat_tm()

PICOTM_NOTHROW char* strcat_tm ( char *restrict  dest,
const char *restrict  src 
)

Variant of strcat_tx() that operates on transactional memory.

◆ strchr_tm()

PICOTM_NOTHROW char* strchr_tm ( const char *  s,
int  c 
)

Variant of strchr_tx() that operates on transactional memory.

◆ strcmp_tm()

PICOTM_NOTHROW int strcmp_tm ( const char *  s1,
const char *  s2 
)

Variant of strcmp_tx() that operates on transactional memory.

◆ strcoll_l_tm()

PICOTM_NOTHROW int strcoll_l_tm ( const char *  s1,
const char *  s2,
locale_t  locale 
)

Variant of strcoll_l_tx() that operates on transactional memory.

◆ strcpy_tm()

PICOTM_NOTHROW char* strcpy_tm ( char *restrict  dest,
const char *restrict  src 
)

Variant of strcpy_tx() that operates on transactional memory.

◆ strcspn_tm()

PICOTM_NOTHROW size_t strcspn_tm ( const char *  s,
const char *  reject 
)

Variant of strcspn_tx() that operates on transactional memory.

◆ strdup_tm()

PICOTM_NOTHROW char* strdup_tm ( const char *  s)

Variant of strdup_tx() that operates on transactional memory.

◆ strlen_tm()

PICOTM_NOTHROW size_t strlen_tm ( const char *  s)

Variant of strlen_tx() that operates on transactional memory.

◆ strncat_tm()

PICOTM_NOTHROW char* strncat_tm ( char *restrict  dest,
const char *restrict  src,
size_t  n 
)

Variant of strncat_tx() that operates on transactional memory.

◆ strncmp_tm()

PICOTM_NOTHROW int strncmp_tm ( const char *  s1,
const char *  s2,
size_t  n 
)

Variant of strncmp_tx() that operates on transactional memory.

◆ strncpy_tm()

PICOTM_NOTHROW char* strncpy_tm ( char *restrict  dest,
const char *restrict  src,
size_t  n 
)

Variant of strncpy_tx() that operates on transactional memory.

◆ strndup_tm()

PICOTM_NOTHROW char* strndup_tm ( const char *  s,
size_t  n 
)

Variant of strndup_tx() that operates on transactional memory.

◆ strnlen_tm()

PICOTM_NOTHROW size_t strnlen_tm ( const char *  s,
size_t  maxlen 
)

Variant of strnlen_tx() that operates on transactional memory.

◆ strpbrk_tm()

PICOTM_NOTHROW char* strpbrk_tm ( const char *  s,
const char *  accept 
)

Variant of strpbrk_tx() that operates on transactional memory.

◆ strrchr_tm()

PICOTM_NOTHROW char* strrchr_tm ( const char *  s,
int  c 
)

Variant of strrchr_tx() that operates on transactional memory.

◆ strspn_tm()

PICOTM_NOTHROW size_t strspn_tm ( const char *  s,
const char *  accept 
)

Variant of strspn_tx() that operates on transactional memory.

◆ strstr_tm()

PICOTM_NOTHROW char* strstr_tm ( const char *  haystack,
const char *  needle 
)

Variant of strstr_tx() that operates on transactional memory.

◆ strtok_r_tm()

PICOTM_NOTHROW char* strtok_r_tm ( char *restrict  str,
const char *restrict  delim,
char **restrict  saveptr 
)

Variant of strtok_r_tx() that operates on transactional memory.