C programming
Results 1 to 5 of 5

Thread: C programming

  1. #1
    Member
    Join Date
    Apr 2002
    Posts
    72

    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

  2. #2
    Antionline Herpetologist
    Join Date
    Aug 2001
    Posts
    1,165
    I think what you're looking for is:
    fflush(stdin);
    You have to (I think) #include <stdlib.h> for it.
    Cheers,
    cgkanchi
    Buy the Snakes of India book, support research and education (sorry the website has been discontinued)
    My blog: http://biology000.blogspot.com

  3. #3
    Member
    Join Date
    Apr 2002
    Posts
    72
    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

  4. #4
    Junior Member
    Join Date
    Sep 2002
    Posts
    1
    Try using functions of <io.h> , <dos.h>

  5. #5
    Senior Member
    Join Date
    Aug 2002
    Posts
    115
    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
  •