Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!csus.edu!ucdavis!ucdavis.edu!jhgillespie From: jhgillespie@ucdavis.edu Newsgroups: comp.sys.mac.programmer Subject: Re: MPW C 3.1 scanf problem Message-ID: <8219@ucdavis.ucdavis.edu> Date: 22 Jan 91 16:23:33 GMT References: <38337@cup.portal.com> Sender: usenet@ucdavis.ucdavis.edu Distribution: usa Organization: ucdavis Lines: 10 In article <38337@cup.portal.com> David_Anthony_Guevara@cup.portal.com writes: >What I want to do is to prompt >the user and leave the cursor at the end of the prompt line. My problem >is that scanf will not read the input if the cursor is at the end of the >prompt line. I have to start on a newline for scanf to get the value. try calling fflush(stdout) after the printf() John Gillespie jhgillespie@ucdavis.edu