- This wiki is out of date, use the continuation of this wiki instead
Readwrite modes
From FenixWiki
(Difference between revisions)
Revision as of 00:17, 5 May 2007 (edit) Sandman (Talk | contribs) ← Previous diff |
Current revision (00:21, 5 May 2007) (edit) (undo) Sandman (Talk | contribs) m (→Definition) |
||
(One intermediate revision not shown.) | |||
Line 2: | Line 2: | ||
== Definition == | == Definition == | ||
- | Readwrite modes are used to specify the mode of reading/writing of a file, by passing one of them to the [[function]] [[fopen]]() as the [[parameter]] flags. | + | Readwrite modes are used to specify the mode of reading/writing of a file, by passing one of them to the [[function]] [[fopen]]() as the [[parameter]] ''flags''. |
== List == | == List == | ||
- | [[Color depths|Color depths constants]]: | ||
{| | {| | ||
| ''Constant'' || - ''Value'' || - ''Description'' | | ''Constant'' || - ''Value'' || - ''Description'' |
Current revision
[edit] Definition
Readwrite modes are used to specify the mode of reading/writing of a file, by passing one of them to the function fopen() as the parameter flags.
[edit] List
Constant | - Value | - Description |
O_READ | - 0 | - Read only. |
O_READWRITE | - 1 | - Read and write. Also called O_RDWR. |
O_WRITE | - 2 | - Write only. |
O_ZREAD | - 3 | - Read using Z compression. |
O_ZWRITE | - 4 | - Write using Z compression. |