Replace printf with outs() <<