Need a replacement for form (stream.h)

I would like to replace the "form" function so I can use the latest linux compiler, here is an example:
data = centerTxt(form("%1d:%02d:%02d", hour, min, sec), 10, "");

That form is what I would like to replace, apparently it is a deprecated function.

We use form all over the code. It was fine using gcc version 2.8.1 going to gcc version 4.4.4

Thanks,

-pat
Topic archived. No new replies allowed.