SimGrid  3.14.159
Versatile Simulation of Distributed Systems
xbt_strbuff.c File Reference
#include "xbt/strbuff.h"
#include <stdarg.h>

Macros

#define minimal_increment   512
 

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (strbuff, xbt, "String buffers")
 
void xbt_strbuff_clear (xbt_strbuff_t b)
 Remove any content from the buffer. More...
 
xbt_strbuff_t xbt_strbuff_new (void)
 Constructor. More...
 
xbt_strbuff_t xbt_strbuff_new_from (const char *ctn)
 creates a new string buffer containing the provided string More...
 
void xbt_strbuff_free_container (xbt_strbuff_t b)
 frees only the container without touching to the contained string More...
 
void xbt_strbuff_free (xbt_strbuff_t b)
 frees the buffer and its content More...
 
void xbt_strbuff_append (xbt_strbuff_t b, const char *toadd)
 Adds some content at the end of the buffer. More...
 
void xbt_strbuff_printf (xbt_strbuff_t b, const char *fmt,...)
 format some content and push it at the end of the buffer More...
 
void xbt_strbuff_varsubst (xbt_strbuff_t b, xbt_dict_t patterns)
 Replaces a set of variables by their values. More...
 

Macro Definition Documentation

§ minimal_increment

#define minimal_increment   512

Function Documentation

§ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( strbuff  ,
xbt  ,
"String buffers"   
)