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;
193 while (ch =
getchar(), ch ==
' ' || ch ==
'\t') ;
198 while (ch =
getchar(), ch !=
'\n' && ch !=
EOF) ;
203 printf(
"Invalid input.\n");
char * strchr(const char *String, int ch)
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)
GLuint GLuint GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_ _CRTIMP int __cdecl getchar(void)
_Check_return_opt_ _CRTIMP int __cdecl fflush(_Inout_opt_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl vfprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
const char * strerror(int err)
NTSTATUS NTAPI NtTerminateProcess(HANDLE ProcessHandle, LONG ExitStatus)
#define NtCurrentProcess()
#define DECLSPEC_NORETURN
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)