473,401 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Can i use flush method in C programming -visual studio . explain me with a syntax/

Can i use flush method in C programming . my IDE is Visual studio 2010.

I want to clear the buffer and again i need to re initialise the buffer and to store a new data



thanks in advance
Jan 17 '14 #1

✓ answered by weaknessforcats

Of course. Just call fflush(stdout).

5 1423
weaknessforcats
9,208 Expert Mod 8TB
Of course. Just call fflush(stdout).
Jan 17 '14 #2
but i need it in C ... I think stdout we use for streams
Jan 24 '14 #3
Banfa
9,065 Expert Mod 8TB
That is C; stdout is a C object declared in stdio.h with type FILE* and fflush is used for streams because, basically, flush is an operation that you perform on streams.

What was it you actually wanted to do?
Jan 24 '14 #4
Thanks Banfa fr replying .
I actually wanted to clear the existing buffer and to initialise the new buffer in that place. but we tried with different methods. But we are getting two problems.
1. sometimes getting garbage/junk data
2. Sometimes it is overlapping / appending


thanks in advance
Jan 24 '14 #5
Banfa
9,065 Expert Mod 8TB
What do you mean by buffer? How is its cleared state represented?
Jan 24 '14 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: TomB | last post by:
Could someone point out some information on connecting Visual Studio.Net to an existing asp app? I have one developer who'd like to use the new IDE, but the warning that pops up when he connects...
35
by: +-={K-SoL}=-+ | last post by:
when I try to reference 2 obfuscated libraries at the same time visual studio gives me a compilation error since the obfuscator has converted some name spaces to a and b in both libraries, now I...
0
by: Alan S | last post by:
I am getting an error taht says Visual Studio.Net has detected that the specified webserver is not running ASP.Net 1.1. However, I have made sure that everything is setup and I even found a technet...
3
by: mikeorb | last post by:
I'm debugging some JavaScript. In Firefox I can use dump(msg) to print a message on their JS console (see http://kb.mozillazine.org/Viewing_dump()_output). Likewise, Opera has the...
0
by: James Simpson | last post by:
Hello, Currently I am writing a plugin for Visual Studio 2005 using C#. I was wondering how I can programatically insert a menu between the View and Insert menu of Visual Studio 2005. In other...
0
by: Frank Swarbrick | last post by:
Something I've been trying on and off to do and only just got figured out. You can use something similar to the following command to initialize both the DB2 environment and the MS Visual Studio...
2
by: =?Utf-8?B?SmFzb24gQS4gSmVuc2Vu?= | last post by:
I have a MSDN Subscription expiring this month but really need Visual Studio 2008 when it comes out. I called customer service to find out but they don't know. They seemed to think it was a...
2
by: Dany Wilson | last post by:
Hi guys! How to add a menu item into Visual Studio 6.0 IDE from an Addin developed in Visual C++ 6.0? When we create a simple addin using the Visual Studio wizard, it adds a tool bar button but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.