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

Go to the source code of this file.

Functions

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

Function Documentation

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

The explain_buffer_string_n function may be used to print a string, with a fixed upper limit.

Parameters:
sbThe string buffer to print into.
dataThe string to be printed.
data_sizeThe maximum length of the string to be printed.

Definition at line 25 of file string_n.c.