Back to index

tetex-bin  3.0
Defines | Functions
basics.h File Reference
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PATHSEP   ':'
#define DIRSEP   '/'
#define ESCAPECHAR   '\\'
#define RECURSIVE   "//"
#define PSRES_NAME   "PSres.upr"
#define RB   "r"
#define WB   "w"
#define MAXPATHLEN   256
#define MAXSTRLEN   256
#define IS_DIR_SEP(c)   ((c) == DIRSEP)
#define NOBASICS

Functions

void fatal (char *fmt,...)
void msg (char *fmt,...)

Define Documentation

#define DIRSEP   '/'

Definition at line 39 of file basics.h.

#define ESCAPECHAR   '\\'

Definition at line 43 of file basics.h.

#define IS_DIR_SEP (   c)    ((c) == DIRSEP)

Definition at line 72 of file basics.h.

#define MAXPATHLEN   256

Definition at line 64 of file basics.h.

#define MAXSTRLEN   256

Definition at line 68 of file basics.h.

#define NOBASICS

Definition at line 75 of file basics.h.

#define PATHSEP   ':'

Definition at line 35 of file basics.h.

#define PSRES_NAME   "PSres.upr"

Definition at line 52 of file basics.h.

#define RB   "r"

Definition at line 56 of file basics.h.

#define RECURSIVE   "//"

Definition at line 47 of file basics.h.

#define WB   "w"

Definition at line 60 of file basics.h.


Function Documentation

void fatal ( char *  fmt,
  ... 
)

Definition at line 17 of file basics.c.

{  va_list args;

   va_start(args, fmt);
   vfprintf(stderr, fmt, args);
   va_end(args);
   exit(1);
}
void msg ( char *  fmt,
  ... 
)

Definition at line 27 of file basics.c.

{  va_list args;

   va_start(args, fmt);
   vfprintf(stderr, fmt, args);
   fflush(stderr);
   va_end(args);
}