Wiki Markup |
---|
The C standard identifies specific strings to use for the {{mode}} on calls to {{fopen()}} \[[ISO/IEC 9899-1999|AA. C References#ISO/IEC 9899-1999]\] . To be strictly conforming and portable, one of the strings from the following table (adapted from the C standard) must be used: |
...
If the mode string begins with one of the above sequences, the implementation might choose to ignore the
remaining characters, or it might use them to select different kinds of a file.files.
Wiki Markup |
---|
An [implementation|BB. Definitions#implementation] may define additional mode strings, but only the modes in the above table are fully portable and C99 \[[ISO/IEC 9899-1999|AA. C References#ISO/IEC 9899-1999]\] compliant. |
Risk Assessment
Using a mode string that is not recognized by an implementation may cause the call to fopen()
to fail.
...