21 #include <lal/LALStdlib.h>
22 #include <lal/LALCache.h>
23 #include <lal/FileIO.h>
25 int main(
int argc,
char *argv[] )
27 LALFILE *outfile = NULL;
31 if ( argc > 1 && ! strcmp(argv[1],
"-o") ) {
35 cache =
XLALCacheGlob( NULL, argc == 1 ? NULL : argv[arg++] );
36 for ( ; arg < argc; ++arg ) {
void LALCheckMemoryLeaks(void)
int main(int argc, char *argv[])
int XLALFileClose(LALFILE *file)
LALFILE * XLALFileOpen(const char *path, const char *mode)
LALCache * XLALCacheMerge(const LALCache *cache1, const LALCache *cache2)
Returns a new LALCache structure that is the merge of two.
void XLALDestroyCache(LALCache *cache)
Destroys a LALCache structure.
LALCache * XLALCacheGlob(const char *dirstr, const char *fnptrn)
Globs a directory and construct LALCache from matching entries.
int XLALCacheFileWrite(LALFILE *fp, const LALCache *cache)
Writes a LALCache structure to output LALFILE.
void XLALExitErrorHandler(const char *func, const char *file, int line, int errnum)
The XLAL error handler that calls exit.
XLALErrorHandlerType * XLALSetErrorHandler(XLALErrorHandlerType *newHandler)
Sets the error handler to a new handler and returns the old handler.
The LALCache structure is an array of entries.