spielwiese
Last change
on this file since 5df856 was
5df856,
checked in by Oleksandr Motsak <motsak@…>, 13 years ago
|
Removing duplicates
|
-
Property mode set to
100644
|
File size:
822 bytes
|
Rev | Line | |
---|
[46395ad] | 1 | #ifndef FEFOPEN_H |
---|
| 2 | #define FEFOPEN_H |
---|
| 3 | /***************************************************************** |
---|
| 4 | * |
---|
| 5 | * File Stuff |
---|
| 6 | * |
---|
| 7 | *****************************************************************/ |
---|
| 8 | FILE * feFopen(const char *path, const char *mode, char *where=NULL, |
---|
| 9 | int useWerror=FALSE, int path_only=FALSE); |
---|
| 10 | |
---|
| 11 | /* |
---|
| 12 | // These are our versions of fopen and fread They are very similar to |
---|
| 13 | // the usual fopen and fread, except that on reading, they always |
---|
| 14 | // convert "\r\n" into " \n" and "\r" into "\n". |
---|
| 15 | // |
---|
| 16 | // IMPORTANT: do only use myfopen and myfread when reading text, |
---|
| 17 | // do never use fopen and fread |
---|
| 18 | */ |
---|
[5df856] | 19 | #if (defined(CYGWIN) || defined(ix86_Win)) |
---|
| 20 | |
---|
[46395ad] | 21 | FILE *myfopen(const char *path, const char *mode); |
---|
[5df856] | 22 | |
---|
[46395ad] | 23 | #else |
---|
[5df856] | 24 | |
---|
[46395ad] | 25 | #define myfopen fopen |
---|
[5df856] | 26 | |
---|
[46395ad] | 27 | #endif |
---|
| 28 | |
---|
| 29 | size_t myfread(void *ptr, size_t size, size_t nmemb, FILE *stream); |
---|
[5df856] | 30 | |
---|
[46395ad] | 31 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.