Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

How to Clear Input Buffer

This is a discussion on How to Clear Input Buffer within the C and C++ forums, part of the Software Development category; I want to know how to clear the input buffer? Someone tell me the steps for doing the same also enrich my knowledge by putting your ideas on is it ...

Go Back   Geeks Talk > Software Development > C and C++
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 06-29-2006
Contributing Member
 
Join Date: May 2006
Posts: 76
Thanks: 0
Thanked 6 Times in 5 Posts
blenda is on a distinguished road
How to Clear Input Buffer

I want to know how to clear the input buffer? Someone tell me the steps for doing the same also enrich my knowledge by putting your ideas on is it necessary that we do it while coding C program
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-12-2006
Contributing Member
 
Join Date: May 2006
Posts: 84
Thanks: 0
Thanked 11 Times in 7 Posts
timmy is on a distinguished road
Re: How to Clear Input Buffer

This can be done by using the flush in C programming language.Sometimes it is necessary to forcefully flush a buffer to its stream. In that case this function flush can be used. The general syntax of this function is
int fflush(FILE *stream);
Reply With Quote
Reply

  Geeks Talk > Software Development > C and C++

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -4. The time now is 11:48 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved