39 void exit(
int exitcode)
49 void die_func(
const char *
msg, ...)
60 DPRINT1(
"Unrecoverable problem!\n");
72 void pdie_func(
const char *
msg, ...)
83 DPRINT1(
"Unrecoverable problem!\n");
104 void *vfalloc(
int size)
111 DPRINT1(
"Allocation failed!\n");
126 DPRINT1(
"Allocation failed!\n");
133 void vffree(
void *
ptr)
181 return a <
b ?
a :
b;
193 while (ch =
getchar(), ch ==
' ' || ch ==
'\t') ;
198 while (ch =
getchar(), ch !=
'\n' && ch !=
EOF) ;
203 printf(
"Invalid input.\n");
VOID VfatPrintV(PCHAR Format, va_list args)
GLuint GLuint GLsizei count
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
void * qalloc(void **root, int size)
const char * strerror(int err)
void pdie(const char *msg,...)
#define DECLSPEC_NORETURN
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
void die(const char *msg,...)
#define NtCurrentProcess()
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
GLboolean GLboolean GLboolean b
char get_key(const char *valid, const char *prompt)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
_Check_return_ _CRTIMP int __cdecl getchar(void)
static unsigned __int64 next
_Check_return_opt_ _CRTIMP int __cdecl fflush(_Inout_opt_ FILE *_File)
char * strchr(const char *String, int ch)
NTSTATUS NTAPI NtTerminateProcess(HANDLE ProcessHandle, LONG ExitStatus)
GLboolean GLboolean GLboolean GLboolean a
_Check_return_opt_ _CRTIMP int __cdecl vfprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)