-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdiff.h
More file actions
38 lines (28 loc) · 854 Bytes
/
Copy pathdiff.h
File metadata and controls
38 lines (28 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
diff.h
----------
Projet diff
Rôle : prototypes de la fonction diff en elle-même
*/
#ifndef DIFF_H_INCLUDED
#define DIFF_H_INCLUDED
#define MAX_LINES 255
#include <stdio.h>
#include <stdlib.h>
#include "my_lib.h"
typedef struct{
unsigned int arg_no_options; //Default
unsigned int arg_same; //Files are same
unsigned int arg_differ; //File are differents
unsigned int arg_help; //Display help message
} OPTIONS;
int getLines(FILE *f);
int sameContents(FILE *f1, FILE *f2);
int getOccurStrArray(char* str, char** array, int size);
int continueArray(char** array, int size);
int variousSymbols(char** array, int size);
char** newArray(int size);
char** convertFileToArray(FILE *f);
char** appendToArray(char* str, char** array, int size);
void diff(FILE *f1, FILE *f2, int count1, int count2, OPTIONS *op);
#endif // DIFF_H_INCLUDED