char *tmpnam(char *out asm("a0")) { char *s = ((out == 0) ? TMPNAME : out); *s++ = 0; do { sprintf(s, "temp%04x", TMPNAME_COUNT++); } while (SymFindPtr(s+8,0)); return s; }