I have a simple task: fit a gaussian on a histogram and get out the number of entries in the fitted area, not depending on the binning of the histogram. I was trying to do that with:
extern char *Form(const char *fmt, ...); // format in circular buffer
same functionality as sprintf. It uses an internal buffer to format the string
and returns a pointer to this string. Up to you to save a copy in your own managed area. In many cases (like in the example above) you can pass
directly Form to functions expecting a const char* argument.