Description: Write a function called " cleanup" , which has two input parameters, the first parameter is a common way linked list (without head and tail node), the second argument is an integer. The role of the function is to clear the list of all the elements of less than 2 parameters (equal if not clear), and then returns a list of the first node, do not create new storage space, you can not upset the order of the elements. The size of each element in the list of 2 words, the first part (First word) for the data field, the record data the second part (Second word) address for the next element. Null pointer with 0xFFFFFFFF said that if the final list is empty, it returns 0xFFFFFFFF. Assuming a start list of non-empty. Do not call to a given program segment that label. Example: Given a list of [15, 1, 12, 22, 9, 34, 27, 6], the second parameter is 15, after deleting the node list is [15, 22, 34, 27], the return value contains data as a pointer pointing to that node 15.
To Search:
File list (Check if you may need any files):
project1_3110103478.doc