C How To Redirect Printf Output Back Into Code?