C program to transfer contents of one array to another results in segmentation fault
问题 C beginner here. My transfer function is supposed to take 5 parameters, two arrays (first array has values the other is empty), a length value for the arrays, a size of value, a remove function, and an insert function. It then takes the values of the first array and puts them in a linked list. Then it removes the values from the linked list and inserts them into the 2nd array. Unfortunately I'm getting the following error message when the transfer function runs in test.c file. Segmentation