This is a program that holds inventory. The program displays a menu of options. Everything else works perfect except the delete an entry function. I do not know how to make it d
Following your coding style, although it should improve:
void remove_item(gaming entry[], int *size, int item) { memcpy(&entry[item], &entry[*size], sizeof(entry[0])); *size = *size - 1; }
This code will override the desired entry (at index item) and decrease the last index (size) by one.
item
size