MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / find_name

Function find_name

tinyemu/machine.c:174–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174static BOOL find_name(const char *name, const char *name_list)
175{
176 size_t len;
177 const char *p, *r;
178
179 p = name_list;
180 for(;;) {
181 r = strchr(p, ',');
182 if (!r) {
183 if (!strcmp(name, p))
184 return TRUE;
185 break;
186 } else {
187 len = r - p;
188 if (len == strlen(name) && !memcmp(name, p, len))
189 return TRUE;
190 p = r + 1;
191 }
192 }
193 return FALSE;
194}
195
196static const VirtMachineClass *virt_machine_list[] = {
197#if defined(EMSCRIPTEN)

Callers 1

virt_machine_find_classFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected