Thread: Clear Buffer

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    18

    Post Clear Buffer

    hi people.
    I'm with one duvid.
    this ask if about the function __fpurge(FILE *STREAM);
    is secure use this function to clear buffer?
    if yes, then anyone can use him in your codes, because simplify the code to clear buffer, instead to type ten lines codes...this function cut the work of programmer.
    if any know about this function pls anserme.

    One kiss in your asses.

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Well, if you look at the man page you would see:
    Code:
    CONFORMINGTO
           These functions are nonstandard  and  not  portable.   The
           function  fpurge()  was  introduced  in BSD 4.4 and is not
           available under Linux.  The function __fpurge() was intro..
           duced  in  Solaris,  and  is  present  in glibc 2.1.95 and
           later.
    So it's not a good idea to use it if you want portable code.

    And please, keep your lips away from me.
    If you understand what you're doing, you're not learning anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multithreading (flag stopping a thread, ring buffer) volatile
    By ShwangShwing in forum C Programming
    Replies: 3
    Last Post: 05-19-2009, 07:27 AM
  2. Frame buffer not working
    By Noise in forum Game Programming
    Replies: 1
    Last Post: 02-15-2009, 12:05 PM
  3. Lame null append cause buffer to crash
    By cmoo in forum C Programming
    Replies: 8
    Last Post: 12-29-2008, 03:27 AM
  4. writing a pack-style function, any advices?
    By isaac_s in forum C Programming
    Replies: 10
    Last Post: 07-08-2006, 08:09 PM
  5. Having Buffer Problems With Overlapped I/O --
    By Sargera in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 04:46 PM