Skip to content

Commit 6cd16f7

Browse files
committed
Reformated the project.
1 parent b5a3f0f commit 6cd16f7

File tree

110 files changed

+7905
-12417
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+7905
-12417
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ dkms.conf
174174
*.app
175175

176176

177-
main.c
177+
testsMain.c
178178

179179
cloc-1.86.exe
180180

Algorithms/ArraysAlg/Headers/ArraysAlg.h

+30-15
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
void reverseArray(void *arr, int length, int elemSize);
66

7-
void *mostFrequentArrValueH(void *arr, int length, int elemSize, int (*cmp)(const void *, const void *), int (*hashFun)(const void *));
7+
void *mostFrequentArrValueH(void *arr, int length, int elemSize, int (*cmp)(const void *, const void *),
8+
int (*hashFun)(const void *));
89

910
void *mostFrequentArrValueA(void *arr, int length, int elemSize, int (*cmp)(const void *, const void *));
1011

@@ -18,47 +19,60 @@ void *arrResizeOfRangeAndCpy(void *arr, int length, int elemSize, int startIndex
1819

1920
void *arrResizeAndCpyC(void *arr, int length, int elemSize, int newLength, void (*copyFun)(const void *, const void *));
2021

21-
void *arrResizeOfRangeAndCpyC(void *arr, int length, int elemSize, int startIndex, int endIndex, int newLength, void (*copyFun)(const void *, const void *));
22+
void *arrResizeOfRangeAndCpyC(void *arr, int length, int elemSize, int startIndex, int endIndex, int newLength,
23+
void (*copyFun)(const void *, const void *));
2224

2325
void *arrCopy(void *arr, int length, int elemSize);
2426

2527
void *arrCopyC(void *arr, int length, int elemSize, void (*copyFun)(const void *, const void *));
2628

2729
void *arrCopyOfRange(void *arr, int length, int elemSize, int startIndex, int endIndex);
2830

29-
void *arrCopyOfRangeC(void *arr, int length, int elemSize, int startIndex, int endIndex, void (*copyFun)(const void *, const void *));
31+
void *arrCopyOfRangeC(void *arr, int length, int elemSize, int startIndex, int endIndex,
32+
void (*copyFun)(const void *, const void *));
3033

3134
void fillArr(void *arr, void *fillValue, int length, int elemSize);
3235

3336
void fillArrC(void *arr, void *fillValue, int length, int elemSize, void (*copyFun)(const void *, const void *));
3437

3538
void fillArrOfRange(void *arr, void *fillValue, int length, int elemSize, int startIndex, int endIndex);
3639

37-
void fillArrOfRangeC(void *arr, void *fillValue, int length, int elemSize, int startIndex, int endIndex, void (*copyFun)(const void *, const void *));
40+
void fillArrOfRangeC(void *arr, void *fillValue, int length, int elemSize, int startIndex, int endIndex,
41+
void (*copyFun)(const void *, const void *));
3842

3943
int arrCompare(void *fArr, int fLength, void *sArr, int sLength, int elemSize, int (*cmp)(const void *, const void *));
4044

41-
int arrCompareOfRange(void *fArr, int fLength, void *sArr, int sLength, int elemSize, int startIndex, int endIndex, int (*cmp)(const void *, const void *));
45+
int arrCompareOfRange(void *fArr, int fLength, void *sArr, int sLength, int elemSize, int startIndex, int endIndex,
46+
int (*cmp)(const void *, const void *));
4247

4348
int arrMismatch(void *fArr, int fLength, void *sArr, int sLength, int elemSize, int (*cmp)(const void *, const void *));
4449

45-
int arrMismatchOfRange(void *fArr, int fLength, void *sArr, int sLength, int elemSize, int startIndex, int endIndex, int (*cmp)(const void *, const void *));
50+
int arrMismatchOfRange(void *fArr, int fLength, void *sArr, int sLength, int elemSize, int startIndex, int endIndex,
51+
int (*cmp)(const void *, const void *));
4652

47-
int arrAnagramsS(void *fArr, int fLength, void *sArr, int sLength, int elemSize, int (*cmp)(const void *, const void *));
53+
int
54+
arrAnagramsS(void *fArr, int fLength, void *sArr, int sLength, int elemSize, int (*cmp)(const void *, const void *));
4855

49-
int arrAnagramsH(void *fArr, int fLength, void *sArr, int sLength, int elemSize, int (*cmp)(const void *, const void *), int (*hashFun)(const void *));
56+
int arrAnagramsH(void *fArr, int fLength, void *sArr, int sLength, int elemSize, int (*cmp)(const void *, const void *),
57+
int (*hashFun)(const void *));
5058

51-
int arrRemoveDuplicatesH(void *arr, int length, int elemSize, int (*cmp)(const void *, const void *), int (*hashFun)(const void *), void (*freeFun)(void *));
59+
int arrRemoveDuplicatesH(void *arr, int length, int elemSize, int (*cmp)(const void *, const void *),
60+
int (*hashFun)(const void *), void (*freeFun)(void *));
5261

53-
int arrRemoveDuplicatesA(void *arr, int length, int elemSize, int (*cmp)(const void *, const void *), void (*freeFun)(void *));
62+
int arrRemoveDuplicatesA(void *arr, int length, int elemSize, int (*cmp)(const void *, const void *),
63+
void (*freeFun)(void *));
5464

55-
int arrRemoveValues(void *arr, int arrLength, void *values, int valuesArrLength, int elemSize, int (*cmp)(const void *, const void *), void (*freeFun)(void *));
65+
int arrRemoveValues(void *arr, int arrLength, void *values, int valuesArrLength, int elemSize,
66+
int (*cmp)(const void *, const void *), void (*freeFun)(void *));
5667

57-
int arrCountValues(void *arr, int arrLength, void *values, int valuesArrLength, int elemSize, int (*cmp)(const void *, const void *));
68+
int arrCountValues(void *arr, int arrLength, void *values, int valuesArrLength, int elemSize,
69+
int (*cmp)(const void *, const void *));
5870

59-
int isSubArr(void *arr, int arrLength, void *values, int valuesArrLength, int elemSize, int (*cmp)(const void *, const void *));
71+
int isSubArr(void *arr, int arrLength, void *values, int valuesArrLength, int elemSize,
72+
int (*cmp)(const void *, const void *));
6073

61-
int arrGetStartIndex(void *arr, int arrLength, void *values, int valuesArrLength, int elemSize, int (*cmp)(const void *, const void *));
74+
int arrGetStartIndex(void *arr, int arrLength, void *values, int valuesArrLength, int elemSize,
75+
int (*cmp)(const void *, const void *));
6276

6377
int arrContains(void *arr, void *value, int length, int elemSize, int (*cmp)(const void *, const void *));
6478

@@ -76,7 +90,8 @@ int arrBinarySearch(void *arr, void *value, int length, int elemSize, int (*cmp)
7690

7791
int arrIsPalindrome(void *arr, int length, int elemSize, int (*cmp)(const void *, const void *));
7892

79-
int arrIsRotation(void *fArr, int fLength, void *sArr, int sLength, int elemSize, int (*cmp)(const void *, const void *));
93+
int
94+
arrIsRotation(void *fArr, int fLength, void *sArr, int sLength, int elemSize, int (*cmp)(const void *, const void *));
8095

8196
void arrUpdateElem(void *arr, void *value, int length, int elemSize, int index, void (*freeFun)(void *));
8297

0 commit comments

Comments
 (0)