source: git/libpolys/resources/feFopen.h @ 7f2454a

spielwiese
Last change on this file since 7f2454a was 014b65, checked in by Mohamed Barakat <mohamed.barakat@…>, 13 years ago
- moved misc,reporter,resources,coeffs,polys -> (new) libpolys (Hans agreed) - migrated to automake in coeffs, misc status: everything builds (except polys) todo: . migrate resources and reporter to automake . create autoconf macros for omalloc, factory, and libpolys
  • 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.