Slight speed-up of fprint, really should be in C though.