/* special[] contains formats for lines that might not compare exactly. *Seescanline()forthemeaningoftheformatcharacters. *Thesestringsshouldhave\nattheend.
*/
staticchar* special[] = /* Make sure to use \n */
{ "Dreadnaut version %*f (%*d bits).\n", "cpu time = %*f seconds\n", "canupdates=%d; cpu time = %*f seconds\n", "Mode=%s m=%*d n=%d labelorg=%d edges=%d options=(%s))\n", "group time: %*f, %*f, %*f, group order time: %*f;%\n", ">Z %d graphs generated in %*f sec\n", ">Z %d graphs labelled from %s to %s in %*f sec.\n", "%d graphs altogether; cpu=%*f sec\n", "group time: %*f,%*f,%*f, order:%*f total:%*f " "(Schreier fails: %d); exp_paths time:%*f; aut_check time:%*f\n", "%d cell; code = %d; cpu time = %*f seconds\n", "%d cells; code = %d; cpu time = %*f seconds\n", ">Z %d graphs read from stdin; %d coloured graphs written to stdout; %*f sec\n", ">Z %d graphs read from stdin; %d written to stdout; %*f sec\n", "%d graphs altogether from %d read; cpu=%*f sec\n", ">A %*s %s\n", ">Z %d posets written; %*f sec\n"
}; #define NUMSPECIALS (sizeof(special)/sizeof(*special))
for (;;)
{
l1 = fgets(line1,MAXLINELEN,f1);
l2 = fgets(line2,MAXLINELEN,f2);
if (l1 == NULL || l2 == NULL) break;
++lineno; if (strcmp(l1,l2) != 0)
{ for (i = 0; i < NUMSPECIALS; ++i) if (scanline(l1,special[i],line1mod)
&& scanline(l2,special[i],line2mod)
&& strcmp(line1mod,line2mod) == 0) break; if (i == NUMSPECIALS)
{ if (diffs >= MAXDIFFS)
{
printf("----And more differences not reported.\n"); break;
}
printf("----Difference on line %d:\n",lineno);
printf("%s%s",l1,l2);
++diffs;
}
}
}
if (l1 != NULL || l2 != NULL) ++diffs; if (l1 != NULL && l2 == NULL) printf("File 1 is longer\n"); if (l1 == NULL && l2 != NULL) printf("File 2 is longer\n");
if (diffs == 0) printf("OK\n");
exit(diffs != 0);
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.16 Sekunden
(vorverarbeitet am 2026-06-15)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.