libexplain  1.4.D001
Defines | Functions
libexplain/buffer/char_data.c File Reference
#include <libexplain/buffer/char_data.h>
#include <libexplain/buffer/hexdump.h>
#include <libexplain/buffer/pointer.h>
#include <libexplain/option.h>
#include <libexplain/is_efault.h>

Go to the source code of this file.

Defines

#define A_FEW_BYTES   8

Functions

void explain_buffer_char_data (explain_string_buffer_t *sb, const void *data, size_t data_size)
void explain_buffer_char_data_quoted (explain_string_buffer_t *sb, const void *data, size_t data_size)

Define Documentation

#define A_FEW_BYTES   8

Definition at line 26 of file char_data.c.


Function Documentation

void explain_buffer_char_data ( explain_string_buffer_t sb,
const void *  data,
size_t  data_size 
)

The explain_buffer_char_data function may be used to print an array of char data, but it is not a string.

Parameters:
sbThe string buffer to print into.
dataThe base of the array to be printed
data_sizeThe size of the array to be printed, int bytes.

Definition at line 30 of file char_data.c.

void explain_buffer_char_data_quoted ( explain_string_buffer_t sb,
const void *  data,
size_t  data_size 
)

The explain_buffer_char_data_quoted function may be used to print an array of char data, and it is thought to be a NUL-terminated string.

Parameters:
sbThe string buffer to print into.
dataThe base of the array to be printed
data_sizeThe size of the array to be printed, int bytes.

Definition at line 53 of file char_data.c.