10 void strlwr (char * str)
12 while (*str) {*str = tolower (*str); str++; }
15 int filelength (int fd)
17 FILE *f = fdopen (dup(fd), "r");
18 fseek (f, 0, SEEK_END);
24 unsigned long _beginthread (void (*pfuncStart)(void *), unsigned unStackSize, void* pArgList)
36 void OutputDebugString (const char *str)
38 fprintf(stderr, "OutputDebugString: %s\n", str);
46 int MulDiv(int a, int b, int c)
48 /* slow long long version */
49 __extension__ long long aa = a;
50 __extension__ long long bb = b;
51 __extension__ long long cc = c;
53 __extension__ long long dd = aa * bb;
54 __extension__ long long ee = dd / cc;
64 void vm_free(void* ptr, char*, int)
69 void *vm_malloc(int size, char*, int)
74 char *vm_strdup(char const* str, char*, int)
79 void windebug_memwatch_init()
84 /* error message debugging junk */
85 int Log_debug_output_to_file = 0;
87 void load_filter_info(void)
92 void outwnd_printf(char*, char*, ...)
97 void outwnd_printf2(char*, ...)
107 void Warning( char * filename, int line, char * format, ... )
112 void Error( char * filename, int line, char * format, ... )
117 void WinAssert(char * text,char *filename, int line)