Back to index

tetex-bin  3.0
Functions
xfopen.c File Reference
#include <kpathsea/config.h>

Go to the source code of this file.

Functions

FILE *xfopen P2C (const_string, filename, const_string, mode)
void xfclose P2C (FILE *, f, const_string, filename)

Function Documentation

FILE* xfopen P2C ( const_string  ,
filename  ,
const_string  ,
mode   
)

Definition at line 26 of file xfopen.c.

{
  FILE *f;
  
  assert (filename && mode);
  
  f = fopen (filename, mode);
  if (f == NULL)
    FATAL_PERROR (filename);

  return f;
}
void xfclose P2C ( FILE ,
f  ,
const_string  ,
filename   
)

Definition at line 41 of file xfopen.c.

{
  assert (f);
  
  if (fclose (f) == EOF)
    FATAL_PERROR (filename);
}