Removed magic numbers for card score length and intmax buffer sizes

This commit is contained in:
MeirGavish
2025-08-08 01:59:21 +03:00
parent 2ce3acbe1c
commit fd8e52d48a
5 changed files with 19 additions and 9 deletions
+2
View File
@@ -37,6 +37,8 @@ static inline int get_digits_even(int n)
#define NUM_ELEM_IN_ARR(arr) (sizeof(arr) / sizeof((arr)[0]))
#define INT_MAX_DIGITS 10 // strlen(str(INT_MAX)) = strlen("2147483647")
int int_arr_max(int int_arr[], int size);
#endif // UTIL_H