libexplain  1.4.D001
Functions
libexplain/string_buffer.c File Reference
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

void explain_string_buffer_init (explain_string_buffer_t *sb, char *message, int message_size)

Function Documentation

void explain_string_buffer_init ( explain_string_buffer_t sb,
char *  message,
int  message_size 
)

The explain_string_buffer_init function may be used to prespare a string buffer for use in building a C string.

Parameters:
sbThe string buffer to be initialised.
messageThe array which is to contain the string being constructed by the string buffer.
message_sizeThe size (in bytes) of the array which is to contain the string being constructed by the string buffer.

Definition at line 24 of file string_buffer.c.