mirror of https://github.com/Genymobile/scrcpy
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
353 B
C
14 lines
353 B
C
3 years ago
|
#include "intmap.h"
|
||
|
|
||
|
const struct sc_intmap_entry *
|
||
|
sc_intmap_find_entry(const struct sc_intmap_entry entries[], size_t len,
|
||
|
int32_t key) {
|
||
|
for (size_t i = 0; i < len; ++i) {
|
||
|
const struct sc_intmap_entry *entry = &entries[i];
|
||
|
if (entry->key == key) {
|
||
|
return entry;
|
||
|
}
|
||
|
}
|
||
|
return NULL;
|
||
|
}
|