Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!bcm!shell!shell!rjohnson From: rjohnson@shell.com (Roy Johnson) Newsgroups: comp.lang.c Subject: Re: Simple question. Message-ID: Date: 1 May 91 17:09:55 GMT References: <6131@gara.une.oz.au> <24528@well.sf.ca.us> Sender: usenet@shell.shell.com (USENET News System) Organization: Shell Development Company, Bellaire Research Center, Houston, TX Lines: 19 In-Reply-To: ron@well.sf.ca.us's message of 1 May 91 05:18:23 GMT In article <24528@well.sf.ca.us> ron@well.sf.ca.us (Ronald Hayden) writes: cfiddyme@gara.une.oz.au (Kith Kanan) writes: > Could someone please tell me if it is possible to read a string with > scanf() and not have the string printed on the screen. > Thanks. > Chris. scanf() will always echo the characters, but getchar() won't. If you're receiving more than one character, though, you'll have to call getchar() multiple times, as it only processes a character at a time. This is really OS specific. Scanf does NOT echo characters, the OS does. See your appropriate OS manuals or newsgroup for details. The answer to the original question is "Yes, it is probably possible." -- =============== !You!can't!get!here!from!there!rjohnson =============== Feel free to correct me, but don't preface your correction with "BZZT!" Roy Johnson, Shell Development Company