00001 /* Macros for the 'type' part of an fopen, freopen or fdopen. 00002 00003 <Read|Write>[Update]<Binary file|text file> 00004 00005 This version is for "same" systems, where text and binary files are 00006 the same. An example is Unix. Many Unix systems could also add a 00007 "b" to the string, indicating binary files, but some reject this 00008 (and thereby don't conform to ANSI C, but what else is new?). 00009 00010 This file is designed for inclusion by host-dependent .h files. No 00011 user application should include it directly, since that would make 00012 the application unable to be configured for both "same" and "binary" 00013 variant systems. */ 00014 00015 #define FOPEN_RB "r" 00016 #define FOPEN_WB "w" 00017 #define FOPEN_AB "a" 00018 #define FOPEN_RUB "r+" 00019 #define FOPEN_WUB "w+" 00020 #define FOPEN_AUB "a+" 00021 00022 #define FOPEN_RT "r" 00023 #define FOPEN_WT "w" 00024 #define FOPEN_AT "a" 00025 #define FOPEN_RUT "r+" 00026 #define FOPEN_WUT "w+" 00027 #define FOPEN_AUT "a+"
1.5.6