C , , , . createString() , , . , , , - :
char * my_formatter( const char * format, ... )
{
...
}
myfunction(my_formatter("arg1%sarg2", createString()));
However, there are some problems with memory management and thread safety with this approach.
source
share