21 lines
408 B
C
21 lines
408 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main(int argc, char *argv[]){
|
||
|
FILE* fichier1, fichier2;
|
||
|
char tab1, tab2;
|
||
|
int diff;
|
||
|
fichier1 = fopen($argv[1], "r");
|
||
|
fichier2 = fopen($argv[2], "r")
|
||
|
while(diff != 0){
|
||
|
fread(&tab1, sizeof(char), 1, fichier1)
|
||
|
fread(&tab2, sizeof(char), 1, fichier2)
|
||
|
if (strcmp(tab2,tab1) != 0;){
|
||
|
diff = 1;
|
||
|
}
|
||
|
}
|
||
|
fclose(fichier1);
|
||
|
fclose(fichier2);
|
||
|
return 0;
|
||
|
}
|