sprintf-like format: formatint, formatreal, formatstring

Missing: docs and sanity checking (I'd like to use the libbsd `fmtcheck` function; is that available on all our platforms?  Or do I have to write a checker?).  Right now it will core dump if you do formatint("%s", 100) for example, so it's not yet ready.