38 #ifndef LUMIERA_TMPBUF_H 39 #define LUMIERA_TMPBUF_H 52 #define LUMIERA_TMPBUF_NUM 16 103 const char* str2,
size_t str2_len,
104 const char* str3,
size_t str3_len);
118 lumiera_tmpbuf_tr (
const char* in,
const char* from,
const char* to,
const char* def);
char * lumiera_tmpbuf_strcat3(const char *str1, size_t str1_len, const char *str2, size_t str2_len, const char *str3, size_t str3_len)
Concat up to 3 strings in a tmpbuf.
char * lumiera_tmpbuf_snprintf(size_t size, const char *fmt,...)
Construct a string in a tmpbuf.
void lumiera_tmpbuf_freeall(void)
free all buffers associated with this thread.
char * lumiera_tmpbuf_strndup(const char *src, size_t size)
Duplicate string to a tmpbuf.
void * lumiera_tmpbuf_provide(size_t size)
Query a thread local tmpbuf.
char * lumiera_tmpbuf_tr(const char *in, const char *from, const char *to, const char *def)
Translates characters in a string, similar to the shell 'tr' utility.