EMAN2
Functions
portable_fileio.h File Reference
#include <cstdio>
#include <sys/types.h>
Include dependency graph for portable_fileio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int portable_fseek (FILE *fp, off_t offset, int whence)
off_t portable_ftell (FILE *fp)

Function Documentation

int portable_fseek ( FILE *  fp,
off_t  offset,
int  whence 
) [inline]
off_t portable_ftell ( FILE *  fp) [inline]

Definition at line 56 of file portable_fileio.h.

Referenced by EMAN::EMUtil::get_image_type().

{
#if defined(HAVE_FTELLO)
        return ftello(fp);
#elif defined(HAVE_FTELL64)
        return ftell64(fp);
#else
        return ftell(fp);
#endif
}