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

Go to the source code of this file.

Functions

void explain_string_buffer_write (explain_string_buffer_t *sb, const char *data, size_t size)

Function Documentation

void explain_string_buffer_write ( explain_string_buffer_t sb,
const char *  data,
size_t  data_size 
)

The explain_string_buffer_write function may be used to append a run of bytes to the end of a string buffer. They do not need to be NUL terminated; indeed, they shall not contain any NUL characters.

Parameters:
sbThe string buffer to print into
dataPointer to the base of the array of characters to be written into the string buffer.
data_sizeThe size in bytes (printable characters could be multi-byte sequences) the size in bytes of the array of bytes to write into the string buffer.

Definition at line 26 of file write.c.