Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Nov 2000 19:53:12 +0000 (GMT)
From:      George Reid <greid@ukug.uk.freebsd.org>
To:        orion slevin <cuomo@cts.com>
Cc:        freebsd questions <freebsd-questions@freebsd.org>
Subject:   Re: What to use  instead of fflush?
Message-ID:  <Pine.BSF.4.21.0011201951500.4990-100000@sobek.openirc.co.uk>
In-Reply-To: <MABBIHMLJKPGNFJPNCJPGEACCAAA.cuomo@cts.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 20 Nov 2000, orion slevin wrote:

> fflush(stdin) does not work with freebsd and linux.
> What can I use instead? Thanks

fflush(4) is used to force a write of all the buffered data in a
stream. The function you are looking for is probably fpurge(3) which is
used to delete any buffered input or output data in a stream.

G

"And then it comes to be that the soothing light
   at the end of your tunnel was just a freight
            train, comin' your way."

      George Reid * greid@ukug.uk.freebsd.org



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0011201951500.4990-100000>