39void exit(
int exitcode)
49void die_func(
const char *
msg, ...)
60 DPRINT1(
"Unrecoverable problem!\n");
72void pdie_func(
const char *
msg, ...)
83 DPRINT1(
"Unrecoverable problem!\n");
104void *vfalloc(
int size)
111 DPRINT1(
"Allocation failed!\n");
126 DPRINT1(
"Allocation failed!\n");
133void vffree(
void *
ptr)
181 return a <
b ?
a :
b;
203 printf(
"Invalid input.\n");
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
char *CDECL strerror(int err)
int WINAPIV fprintf(FILE *file, const char *format,...)
int CDECL vfprintf(FILE *file, const char *format, va_list valist)
int CDECL fflush(FILE *file)
#define DECLSPEC_NORETURN
_ACRTIMP char *__cdecl strchr(const char *, int)
GLuint GLuint GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
NTSTATUS NTAPI NtTerminateProcess(HANDLE ProcessHandle, LONG ExitStatus)
#define NtCurrentProcess()
static unsigned __int64 next
void * qalloc(void **root, int size)
void pdie(const char *msg,...)
char get_key(const char *valid, const char *prompt)
VOID VfatPrintV(PCHAR Format, va_list args)