Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'C/Archive/7z/7zMethodID.c')
-rwxr-xr-xC/Archive/7z/7zMethodID.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/C/Archive/7z/7zMethodID.c b/C/Archive/7z/7zMethodID.c
new file mode 100755
index 00000000..5047359f
--- /dev/null
+++ b/C/Archive/7z/7zMethodID.c
@@ -0,0 +1,14 @@
+/* 7zMethodID.c */
+
+#include "7zMethodID.h"
+
+int AreMethodsEqual(CMethodID *a1, CMethodID *a2)
+{
+ int i;
+ if (a1->IDSize != a2->IDSize)
+ return 0;
+ for (i = 0; i < a1->IDSize; i++)
+ if (a1->ID[i] != a2->ID[i])
+ return 0;
+ return 1;
+}