X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-Id: <3.0.1.16.20030907233739.385fbbf6@earthlink.net> X-Sender: ethros AT earthlink DOT net X-Mailer: Windows Eudora Light Version 3.0.1 (16) Date: Sun, 07 Sep 2003 23:37:39 -0400 To: djgpp AT delorie DOT com From: Ethan Rosenberg Subject: multiple fgets() Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Dear mail list - Pardon me for askiing a question which might be trivial, but I am stumped. I have a program with multiple fgets() in sequence; ie fgets(mr, 9, stdin); ..do something .... fgets(ga, 9, stdin); .. do something ... . . . If the user types more than 8 characters, the remaining characters are left in the keyboard(?) buffer, and are picked up by the next fgets. How do I get rid of the remaining characters, before the following fgets. Much thanks in advance. Ethan Rosenberg