diff options
author | 2005-10-15 10:51:26 +1000 | |
---|---|---|
committer | 2005-10-15 10:51:26 +1000 | |
commit | 9298f610f6f26425db36d8727ad533d660a6c5d6 (patch) | |
tree | 53c6f257f99c7e35c0975744edf5ca7d4e10818f /util.c | |
parent | 638df31ca462b032d59bde586254be5f3dc21e35 (diff) |
Add support for specifying event handler for calling job in command supstitution. Add psub shellscript function for process substitution
darcs-hash:20051015005126-ac50b-d2aedca3a50a78362502f3fa9dd8bf25cb7dc6e1.gz
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -872,9 +872,13 @@ void sb_append2( string_buffer_t *b, ... ) int sb_printf( string_buffer_t *buffer, const wchar_t *format, ... ) { va_list va; + int res; + va_start( va, format ); - sb_vprintf( buffer, format, va ); - va_end( va ); + res = sb_vprintf( buffer, format, va ); + va_end( va ); + + return res; } int sb_vprintf( string_buffer_t *buffer, const wchar_t *format, va_list va_orig ) |