source: git/resource/feFopen.h @ 5df856

spielwiese
Last change on this file since 5df856 was 5df856, checked in by Oleksandr Motsak <motsak@…>, 14 years ago
Removing duplicates
  • Property mode set to 100644
File size: 822 bytes
Line 
1#ifndef FEFOPEN_H
2#define FEFOPEN_H
3/*****************************************************************
4 *
5 * File Stuff
6 *
7 *****************************************************************/
8FILE *  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*/
19#if (defined(CYGWIN) || defined(ix86_Win))
20
21FILE *myfopen(const char *path, const char *mode);
22
23#else
24
25#define myfopen fopen
26
27#endif
28
29size_t myfread(void *ptr, size_t size, size_t nmemb, FILE *stream);
30
31#endif
Note: See TracBrowser for help on using the repository browser.