Back to index

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

Go to the source code of this file.

Functions

DIR *xopendir P1C (string, dirname)
void xclosedir P1C (DIR *, d)

Function Documentation

DIR* xopendir P1C ( string  ,
dirname   
)

Definition at line 26 of file xopendir.c.

{
  DIR *d = opendir (dirname);

  if (d == NULL)
    FATAL_PERROR (dirname);

  return d;
}
void xclosedir P1C ( DIR ,
d   
)

Definition at line 38 of file xopendir.c.

{
#ifdef CLOSEDIR_VOID
  closedir (d);
#else
  int ret = closedir (d);
  
  if (ret != 0)
    FATAL ("closedir failed");
#endif
}