13 _PROTOTYPE(int main
, (int argc
, char *argv
[]));
14 _PROTOTYPE(int diff
, (char *s1
, char *s2
));
15 _PROTOTYPE(void e
, (int n
));
21 /* See if arguments passed ok. */
23 if (diff(argv
[0], "t11b")) e(31);
24 if (diff(argv
[1], "abc")) e(32);
25 if (diff(argv
[2], "defghi")) e(33);
26 if (diff(argv
[3], "j")) e(34);
27 if (argv
[4] != 0) e(35);
37 if (*s1
== 0 && *s2
== 0) return(0);
38 if (*s1
!= *s2
) return (1);
47 printf("Subtest %d, error %d errno=%d ", subtest
, n
, errno
);
49 if (errct
++ > MAX_ERROR
) {
50 printf("Too many errors; test aborted\n");
52 system("rm -rf DIR*");