36 #define SC_STRING_SIZE 4088
87 __attribute__ ((format (printf, 2, 3)));
Support for process management (memory allocation, logging, etc.)
struct sc_string sc_string_t
This is a simple type for growing a string by printf-like commands.
int sc_string_putv(sc_string_t *scs, const char *fmt, va_list ap)
Append to the string object using a format string and a vararg pointer.
const char * sc_string_get_content(sc_string_t *scs, int *length)
Access content of the string buffer.
int sc_string_putc(sc_string_t *scs, int c)
Append a single character to the string buffer object.
int sc_string_putf(sc_string_t *scs, const char *fmt,...)
Append to the string object using a format string and arguments.
int sc_string_puts(sc_string_t *scs, const char *s)
Append a string to the string buffer object.
#define SC_STRING_SIZE
This defines the maximum string storage including the trailing '\0'.
Definition: sc_string.h:36
void sc_string_init(sc_string_t *scs)
Initialize to an empty string.
This is a simple type for growing a string by printf-like commands.
Definition: sc_string.h:45
int printed
Opaque object: do not access.
Definition: sc_string.h:50
char buffer[SC_STRING_SIZE]
Opaque object: do not access.
Definition: sc_string.h:51