This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Equivalence table between C++ and C file open modes
- From: Francesco Palagi <palagi at arcetri dot astro dot it>
- To: libstdc++ at gcc dot gnu dot org
- Cc: support <support at arcetri dot astro dot it>, Gianni Comoretto <comore at arcetri dot astro dot it>, Andrea Orlati <a dot orlati at ira dot inaf dot it>, Carlo Baffa <baffa at arcetri dot astro dot it>
- Date: Fri, 08 Jun 2007 14:16:25 +0200
- Subject: Equivalence table between C++ and C file open modes
Daer All,
following a suggestion from Paolo Carlini (suse.de) I have translated
into C++ comments form the table describing the equivalence between
open flags combination in C++ and C.
I hope this may help clarifying the documentation.
Regards
Francesco Palagi
--
-------------------------------oOo--------------------------------
Francesco PALAGI | phone: +39 0552752216
INAF - Ist. di Radioastronomia | fax: +39 055220039
Sezione di Firenze |
l.go E. Fermi, 5 | e-mail: palagi@arcetri.inaf.it
I 50142 Firenze (Italy) |
===================================================================
// Table 92 File Open modes
//+------------------------------------------------------------+
//| ios_base Flag combination stdio equivalent |
//|binary in out trunc app |
//+------------------------------------------------------------+
//| + "w" |
//| + + "a" |
//| + + "w" |
//| + "r" |
//| + + "r+" |
//| + + + "w+" |
//+------------------------------------------------------------+
//| + + "wb" |
//| + + + "ab" |
//| + + + "wb" |
//| + + "rb" |
//| + + + "r+b" |
//| + + + + "w+b" |
//+------------------------------------------------------------+