diff -r 611417d3e6d2 -r 4fde8fdf258a str.cpp --- a/str.cpp Tue Apr 16 20:32:42 2013 +0300 +++ b/str.cpp Wed Apr 17 14:09:38 2013 +0300 @@ -500,4 +500,17 @@ str& str::operator+= (vertex vrt) { appendformat ("%s", vrt.getStringRep (false).chars()); return *this; +} + +str format (const char* fmt, ...) { + va_list va; + char* buf; + + va_start (va, fmt); + buf = vdynformat (fmt, va, 256); + va_end (va); + + str val = buf; + delete[] buf; + return val; } \ No newline at end of file