Re: Question regarding fwrite() and fflush()

Liste des GroupesRevenir à cl c  
Sujet : Re: Question regarding fwrite() and fflush()
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.c
Date : 26. Jun 2024, 00:54:58
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v5fhs2$1ot2o$2@dont-email.me>
References : 1
User-Agent : Pan/0.158 (Avdiivka; )
On Tue, 25 Jun 2024 18:42:55 -0000 (UTC), Lew Pitcher wrote:

In a recent reply here, I posted some code that used fwrite() to write
binary data to a file. One version of this code used mmap() to access
this binary data in-situ, and I wonder if I should have called fflush()
before calling mmap().

Yes.

Whether the data is buffered or not, is independent of whether the data is
text or not.

Date Sujet#  Auteur
25 Jun 24 * Question regarding fwrite() and fflush()4Lew Pitcher
25 Jun 24 +* Re: Question regarding fwrite() and fflush()2Tim Rentsch
25 Jun 24 i`- Re: Question regarding fwrite() and fflush()1Lew Pitcher
26 Jun 24 `- Re: Question regarding fwrite() and fflush()1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal