feat: ignore some values in auto random
This commit is contained in:
@@ -12,6 +12,16 @@ unsigned int arr_uint_index_of(UintArray array, unsigned int value) {
|
||||
return ARRAY_NOT_FOUND;
|
||||
}
|
||||
|
||||
bool arr_string_match(StringArray array, const char *needle) {
|
||||
for (unsigned int i = 0; i < array.length; i++) {
|
||||
if (strncmp(array.values[i], needle, strlen(array.values[i])) == 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
unsigned int arr_uint_remap_index(UintArray offsets, unsigned int *index) {
|
||||
if (offsets.length == 0) {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user