BogaudioModules

BogaudioModules for VCV Rack
Log | Files | Refs | README | LICENSE

utils.cpp (228B)


      1 
      2 #include "utils.hpp"
      3 #include <cstdarg>
      4 
      5 std::string bogaudio::format(const char* fmt, ...) {
      6 	const int n = 1024;
      7 	char buf[n];
      8 	va_list args;
      9 	va_start(args, fmt);
     10 	vsnprintf(buf, n, fmt, args);
     11 	va_end(args);
     12 	return buf;
     13 }