Xref: utzoo comp.sys.mac.programmer:20857 comp.sys.mac.misc:7700 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!ml27192 From: ml27192@uxa.cso.uiuc.edu (lanett mark) Newsgroups: comp.sys.mac.programmer,comp.sys.mac.misc Subject: Re: MPW C 3.1 scanf problem Message-ID: <1991Jan22.183116.19902@ux1.cso.uiuc.edu> Date: 22 Jan 91 18:31:16 GMT References: <38337@cup.portal.com> Sender: news@ux1.cso.uiuc.edu (News) Distribution: usa Organization: University of Illinois at Urbana Lines: 13 David_Anthony_Guevara@cup.portal.com writes: >I have a (hopefully) real simple problem. I am using MPW C 3.1 >to do some programming for a C class. 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. [example code deleted] MPW Buffers lines, and a scanf or anything will read in _everything_ on the cusor's line. You must do the newline before. Mark Lanett