That is true, so I have two things I can do:
1) I can argue that Copilot is actually the distributor of the code, which means Copilot is infringing, or
2) I can go after the user for infringing, and if I win, that user would not want to use Copilot anymore for liability reasons. Or they could go after Microsoft themselves.
Why not do both? So that's what I am doing, or rather, will do.
// Computes the index of them item.
map_index(int item, int *array, int size)
{
int i;
for (i = 0; i < size; i++)
{
if (array[i] == item)
{
return i;
}
}
return -1;
}