Hi,
is there a way to use snprintf() without -std=c++11?
$ CC -g -std=c++11 snprintf.cc
$ CC -g snprintf.cc
"snprintf.cc", line 7: Error: snprintf is not a member of std.
1 Error(s) detected.
$ cat snprintf.cc
#include <cstdio>
int
main(void)
{
char buffer[100];
int ret = std::snprintf(buffer, 100, "The half of %d is %d", 60, 60/2);
return 0;
}