I/O functions with filename storing, able to track current line in opened file. All standard stdio functions working with files (not stdin, stdout, stderr) should be replaced by their equivalents from XIO library.
More...
|
|
char * | xio_getfname (FILE *f) |
| XIO library extensions. More...
|
|
char * | xio_getfmode (FILE *f) |
| Get file mode from file stream. More...
|
|
int | xio_getlinesread (FILE *f) |
| Get number of read lines from stream. More...
|
|
char * | xio_getfulldescription (FILE *f) |
| Get pointer to string with full file description. More...
|
|
|
FILE * | xfopen (const char *fname, const char *mode) |
| File access. More...
|
|
FILE * | xfopen (const std::string &fname, const char *mode) |
|
int | xfclose (FILE *stream) |
| Close file (function) More...
|
|
int | xfflush (FILE *f) |
| Flush stream (function) More...
|
|
FILE * | xfreopen (const char *filename, const char *mode, FILE *stream) |
| Reopen stream with different file or mode. More...
|
|
|
int | xfprintf (FILE *out, const char *fmt,...) |
| Formatted input/output. More...
|
|
int | xfscanf (FILE *in, const char *fmt,...) |
| FSCANF WITH ERROR HANDLING. More...
|
|
|
char * | xfgets (char *s, int n, FILE *in) |
| Character input/output. More...
|
|
int | xfgetc (FILE *f) |
| Get character from stream (function) More...
|
|
int | xgetc (FILE *f) |
| Get character from stream (function) More...
|
|
int | xungetc (int c, FILE *f) |
| Unget character from stream (function) More...
|
|
|
size_t | xfread (void *ptr, size_t size, size_t count, FILE *stream) |
| Direct input/output. More...
|
|
size_t | xfwrite (const void *ptr, size_t size, size_t count, FILE *stream) |
| Write block of data to stream, handle errors. More...
|
|
|
void | xrewind (FILE *f) |
| File positioning. More...
|
|
|
int | xfeof (FILE *f) |
| Error-handling. More...
|
|
I/O functions with filename storing, able to track current line in opened file. All standard stdio functions working with files (not stdin, stdout, stderr) should be replaced by their equivalents from XIO library.
* Copyright (C) 2015 Technical University of Liberec. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- Author
- Jiri Jenicek
Definition in file xio.h.