Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!mips!apple!well!ron From: ron@well.sf.ca.us (Ronald Hayden) Newsgroups: comp.lang.c Subject: Re: Simple question. Message-ID: <24528@well.sf.ca.us> Date: 1 May 91 05:18:23 GMT References: <6131@gara.une.oz.au> Lines: 10 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.