mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 10:01:14 -03:00
Minor code tweaks
darcs-hash:20070416201053-ac50b-99d3ee51ef2b3642c737c3809bc2a4bfbe103b67.gz
This commit is contained in:
15
util.h
15
util.h
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user