diff options
author | axel <axel@liljencrantz.se> | 2005-10-06 08:37:08 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2005-10-06 08:37:08 +1000 |
commit | b9b841f60319fb5838060cb724a4882ef3be9a74 (patch) | |
tree | abc72116fe9878b2356957c624eb6b235af20148 /util.c | |
parent | b065bd6282f8facfa229e250d693ac43c9eb84b2 (diff) |
Initial update for new event subsystem
darcs-hash:20051005223708-ac50b-8a8d7e003e1c24747f3f154cb66b6c1a1015c35b.gz
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -810,6 +810,16 @@ void sb_init( string_buffer_t * b) b->used -= sizeof(wchar_t); } +string_buffer_t *sb_new() +{ + string_buffer_t *res = malloc( sizeof( string_buffer_t ) ); + if( !res ) + die_mem(); + sb_init( res ); + return res; +} + + void sb_append( string_buffer_t *b, const wchar_t * s) { // fwprintf( stderr, L"Append string \'%ls\'\n", s ); |