doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Typedefs | Functions
cmdlib.h File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <ctype.h>
#include <time.h>
#include <stdarg.h>

Go to the source code of this file.

Typedefs

typedef voidPFN_ERR )(const char *pFormat,...)
 
typedef voidPFN_PRINTF )(const char *pFormat,...)
 
typedef voidPFN_ERR_NUM )(int nNum, const char *pFormat,...)
 
typedef voidPFN_PRINTF_NUM )(int nNum, const char *pFormat,...)
 

Functions

int LoadFile (const char *filename, void **bufferptr)
 
void DefaultExtension (char *path, char *extension)
 
void DefaultPath (char *path, char *basepath)
 
void StripFilename (char *path)
 
void StripExtension (char *path)
 
void Error (const char *pFormat,...)
 
void Printf (const char *pFormat,...)
 
void ErrorNum (int n, const char *pFormat,...)
 
void PrintfNum (int n, const char *pFormat,...)
 
void SetErrorHandler (PFN_ERR pe)
 
void SetPrintfHandler (PFN_PRINTF pe)
 
void SetErrorHandlerNum (PFN_ERR_NUM pe)
 
void SetPrintfHandlerNum (PFN_PRINTF_NUM pe)
 

Typedef Documentation

typedef void( PFN_ERR)(const char *pFormat,...)

Definition at line 48 of file cmdlib.h.

typedef void( PFN_ERR_NUM)(int nNum, const char *pFormat,...)

Definition at line 50 of file cmdlib.h.

typedef void( PFN_PRINTF)(const char *pFormat,...)

Definition at line 49 of file cmdlib.h.

typedef void( PFN_PRINTF_NUM)(int nNum, const char *pFormat,...)

Definition at line 51 of file cmdlib.h.

Function Documentation

void DefaultExtension ( char *  path,
char *  extension 
)

Definition at line 166 of file cmdlib.cpp.

void DefaultPath ( char *  path,
char *  basepath 
)

Definition at line 190 of file cmdlib.cpp.

void Error ( const char *  pFormat,
  ... 
)

Definition at line 45 of file cmdlib.cpp.

void ErrorNum ( int  n,
const char *  pFormat,
  ... 
)

Definition at line 67 of file cmdlib.cpp.

int LoadFile ( const char *  filename,
void **  bufferptr 
)

Definition at line 133 of file cmdlib.cpp.

void Printf ( const char *  pFormat,
  ... 
)

Definition at line 56 of file cmdlib.cpp.

void PrintfNum ( int  n,
const char *  pFormat,
  ... 
)

Definition at line 78 of file cmdlib.cpp.

void SetErrorHandler ( PFN_ERR  pe)

Definition at line 89 of file cmdlib.cpp.

void SetErrorHandlerNum ( PFN_ERR_NUM  pe)

Definition at line 99 of file cmdlib.cpp.

void SetPrintfHandler ( PFN_PRINTF  pe)

Definition at line 94 of file cmdlib.cpp.

void SetPrintfHandlerNum ( PFN_PRINTF_NUM  pe)
void StripExtension ( char *  path)

Definition at line 222 of file cmdlib.cpp.

void StripFilename ( char *  path)

Definition at line 206 of file cmdlib.cpp.