10 int main(int argc, char *argv[])
16 // NOTE: This is in a native compiled file because it needs access to the real errno macro
17 int *Threads_GetErrno(void)
22 // TODO: Move into a helper lib?
23 void itoa(char *buf, uint64_t num, int base, int minLength, char pad)
25 char fmt[] = "%0ll*x";
28 case 8: fmt[5] = 'o'; break;
29 case 10: fmt[5] = 'd'; break;
30 case 16: fmt[5] = 'x'; break;
34 sprintf(buf, fmt+1, minLength, num);
37 sprintf(buf, fmt, minLength, num);
41 int strpos(const char *Str, char Ch)
43 const char *r = strchr(Str, Ch);