Skip to content

Instantly share code, notes, and snippets.

@kidapu
Created February 13, 2016 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kidapu/ea898b3887a881faf062 to your computer and use it in GitHub Desktop.
Save kidapu/ea898b3887a881faf062 to your computer and use it in GitHub Desktop.
C++ string format つくりたい
// test
string stringFormat(const char *format, ...)
{
va_list va;
va_start(va, format);
char buffer[150];
vsprintf(buffer, format, va);
va_end(va);
return (string)buffer;
}
//メモ。
//いちお動くけど、もうちょっとちゃんとしたい
@kidapu
Copy link
Author

kidapu commented Feb 16, 2016

これがよかった。。。 https://github.com/cppformat/cppformat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment