MCPcopy Create free account
hub / github.com/bytecode77/r77-rootkit / IntegerListAdd

Function IntegerListAdd

r77api/clist.c:39–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 FREE(list);
38}
39VOID IntegerListAdd(PINTEGER_LIST list, INT value)
40{
41 if (list->Count == list->Capacity)
42 {
43 list->Capacity += 16;
44 LPINT newValues = NEW_ARRAY(INT, list->Capacity);
45 i_memcpy(newValues, list->Values, list->Count * sizeof(INT));
46
47 LPINT oldValues = list->Values;
48 list->Values = newValues;
49 FREE(oldValues);
50 }
51
52 list->Values[list->Count++] = value;
53}
54BOOL IntegerListContains(PINTEGER_LIST list, INT value)
55{
56 for (DWORD i = 0; i < list->Count; i++)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected