+void (*output)(const char *s) = dolog;
+
+void dologf(const char *fmt, ...)
+{
+ va_list va;
+
+ memmove(logents[0], logents[1], sizeof(logents[0])*3);
+ va_start(va, fmt);
+ vsnprintf(logents[3], 40, fmt, va);
+ va_end(va);
+}
+void (*outputf)(const char *s, ...) = dologf;
+
+void dump_log (char * target) {
+ memcpy(target, logents, sizeof(logents));
+}