medfall

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

commit 6c602e9af13226af27067a0cf398d614daa1bf22
parent 1866f96788a08c71ab1c8af2526741b4b3abf8b8
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Mar  4 10:40:23 +0200

str::operator+=( char )

Diffstat:
str.h | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/str.h b/str.h @@ -33,6 +33,10 @@ public: length += min( copied, N - length - 1 ); } + void operator+=( char c ) { + appendf( "%c", c ); + } + void operator+=( int n ) { appendf( "%d", n ); }