medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 254a4010e210768dd44d83b09c5c861f6998cca3
parent 80d9b2fce01eeb007f2f61aaa2f21665e1a36db5
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue Oct 18 20:56:48 +0300

Add str( fmt, ... ) constructor

Diffstat:
str.h | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/str.h b/str.h @@ -15,6 +15,13 @@ public: clear(); } + str( const char * fmt, ... ) { + va_list argp; + va_start( argp, fmt ); + sprintf( fmt, argp ); + va_end( argp ); + } + void clear() { buf[ 0 ] = '\0'; length = 0;