This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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"                 |
//+------------------------------------------------------------+

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]