1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef BOINC_MFILE_H
- #define BOINC_MFILE_H
- #include <cstdio>
- #include <cstdarg>
- class MFILE {
- char* buf;
- int len;
- FILE* f;
- public:
- MFILE();
- ~MFILE();
- int open(const char* path, const char* mode);
- int _putchar(char);
- int puts(const char*);
- int vprintf(const char* format, va_list);
- int printf(const char* format, ...);
- size_t write(const void *, size_t size, size_t nitems);
- int close();
- int flush();
- long tell() const;
- void get_buf(char*&, int&);
-
-
-
- };
- #endif
|