10 int main(int argc, char *argv[])
15 int *Threads_GetErrno(void)
20 // TODO: Move into a helper lib?
21 extern void itoa(char *buf, uint64_t num, int base, int minLength, char pad)
23 char fmt[] = "%0ll*x";
26 case 8: fmt[5] = 'o'; break;
27 case 10: fmt[5] = 'd'; break;
28 case 16: fmt[5] = 'x'; break;
32 sprintf(buf, fmt+1, minLength, num);
35 sprintf(buf, fmt, minLength, num);
39 int strpos(const char *Str, char Ch)
41 const char *r = strchr(Str, Ch);