I need to format string at runtime in C or C++ (but not with boost like this example).
For example: at runtime I am getting as input string like this "hello world %d %u %s" and array with values. I have to print the formatted string.
I am looking for solution at c, c++ or std::function.
Does anyone have an idea for me?
Thanks in advance
EDIT: array with values means an array of char that stores the values byte by byte. in the above example the four first bytes will be an the first argument %d, the next four bytes will be the value of %u and so on.