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

Go to the source code of this file.

Functions

void explain_string_buffer_truncate (explain_string_buffer_t *sb, long new_position)

Function Documentation

void explain_string_buffer_truncate ( explain_string_buffer_t sb,
long  new_position 
)

The explain_string_buffer_truncate function is used to trim a string buffer back to the given size.

Parameters:
sbThe string buffer to shorten
new_positionThe newer shorter position (ignored of longer)

Definition at line 24 of file truncate.c.