Minor code tweaks

darcs-hash:20070416201053-ac50b-99d3ee51ef2b3642c737c3809bc2a4bfbe103b67.gz
This commit is contained in:
axel
2007-04-17 06:10:53 +10:00
parent 778b6a31ad
commit 5c9570eb56
7 changed files with 52 additions and 16 deletions

15
util.h
View File

@@ -642,10 +642,23 @@ int sb_vprintf( string_buffer_t *buffer, const wchar_t *format, va_list va_orig
void sb_destroy( string_buffer_t * );
/**
Truncate the buffer. This will not deallocate the memory used, it will only set the contents of the string to L"\\0".
Completely truncate the buffer. This will not deallocate the memory
used, it will only set the contents of the string to L"\\0".
*/
void sb_clear( string_buffer_t * );
/**
Truncate the string to the specified number of characters. This
will not deallocate the memory used.
*/
void sb_truncate( string_buffer_t *, int chars_left );
/**
Return the number of characters in the string
*/
ssize_t sb_length( string_buffer_t * );
/*
Buffer functions
*/