29 #include <lal/LALStddef.h>
30 #include <lal/LALStdio.h>
54 #define LALSTDIN (lalstdin())
55 #define LALSTDOUT (lalstdout())
56 #define LALSTDERR (lalstderr())
86 char *XLALFileResolvePathLong (
const char *fname,
const char *fallbackpath );
87 char *XLALFileResolvePath (
const char *fname );
116 #define XLAL_FILE_RESOLVE_PATH( fname ) XLALFileResolvePathLong ( fname, LAL_FALLBACK_DATA_PATH )
int XLALFileVPrintf(LALFILE *file, const char *fmt, va_list ap)
int XLALGunzipTextFile(const char *filename)
Use gzip to uncompress a compressed text file.
int XLALFileClose(LALFILE *file)
int XLALFilePutc(int c, LALFILE *file)
char * XLALFileLoad(const char *path)
Read a complete data-file into memory as a string.
int XLALFileEOF(LALFILE *file)
LALFILE * XLALFileOpenAppend(const char *path, int compression)
LALFILE * lalstdout(void)
size_t XLALFileSize(const char *path)
Return the size of given file in bytes.
int XLALFilePuts(const char *s, LALFILE *file)
int XLALFileIsRegular(const char *path)
Check if given file is 'regular' (rather than a directory or sth else)
LALFILE * lalstderr(void)
size_t XLALFileRead(void *ptr, size_t size, size_t nobj, LALFILE *file)
int XLALFileSetBuffer(LALFILE *file, char *buf, int mode, size_t size)
Set buffering for file I/O.
char * XLALFileGets(char *s, int size, LALFILE *file)
int XLALFileIsRegularAndGetSize(const char *path, size_t *fileLen)
Check if path points to a 'regular file', rather than a directory or sth else.
int XLALFileSeek(LALFILE *file, long offset, int whence)
int XLALFileIsCompressed(const char *path)
size_t XLALFileWrite(const void *ptr, size_t size, size_t nobj, LALFILE *file)
LALFILE * XLALFileOpenRead(const char *path)
int XLALFilePrintf(LALFILE *file, const char *fmt,...)
void XLALFileRewind(LALFILE *file)
int XLALGzipTextFile(const char *path)
Use gzip to compress a text file This function will use the gzip compression routines in zlib to comp...
int XLALFileGetc(LALFILE *file)
LALFILE * XLALFileOpen(const char *path, const char *mode)
long XLALFileTell(LALFILE *file)
LALFILE * XLALFileOpenWrite(const char *path, int compression)
int XLALFileFlush(LALFILE *file)