CS 1723 Section 1T, Summer 1998 Assignment 3

Write the delete_list function from lecture 3 . The function should accepts two parameters: a list and an integer, and should remove and free the first node in the list containing that integer. The rest of the list should remain intact and in the same order.

You need to decide how to handle the case where the item to be deleted isn't in the list. You may handle it as you wish, but don't ignore it or let it cause an access violation.

Turn in a printout of this function, well documented and fitting on one page, at the beginning of CS 1723 class on Tuesday, June 16, 1998.