|
-
April 16th, 2002, 02:04 PM
#1
Member
C programming
Could anybody tell me how to clear the input buffer in C (what is the command for it)?
I would look it up my self but I don't have any book on C and when I tried googleing I couldn't find the answer.
Thanks in advance,
Valheru.
live life, don\'t just endure it
-
April 16th, 2002, 02:38 PM
#2
I think what you're looking for is:
fflush(stdin);
You have to (I think) #include <stdlib.h> for it.
Cheers,
cgkanchi
-
April 16th, 2002, 02:56 PM
#3
Member
That was exactly what I was looking for.
Thank you very very much. (My program is now working properly )
Valheru
live life, don\'t just endure it
-
September 12th, 2002, 11:51 AM
#4
Junior Member
Try using functions of <io.h> , <dos.h>
-
September 12th, 2002, 12:06 PM
#5
Here is a free Teach Yourself C in 21 Days online book . It makes for a great reference
Civilization. The death of dreams.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|