?pathlinks? – Rev 1126
Blame |
Last modification |
View Log
| Download
| RSS feed
| ?url?
#include <stdio.h>
#include <stdlib.h>
int main(argc, argv)
int argc;
char **argv;
{
FILE *f1,*f2;
unsigned char c1,c2;
long pos = 0;
if (argc != 3)
{
fprintf(stderr
, "calling convention: %s <file1> <file2>\n", argv
[0]);
return 1;
}
f1
= fopen(argv
[1], "rb");
if (f1 == NULL)
{
}
f2
= fopen(argv
[2], "rb");
if (f2 == NULL)
{
}
{
if (c1 != c2)
{
fprintf(stderr
,"compare error at position %d\n",pos
);
}
pos++;
}
{
fprintf(stderr
,"files have different sizes\n");
}
return 0;
}