User Tools

Site Tools


notes:fall2024:projects:msi3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:fall2024:projects:msi3 [2024/10/03 00:36] – [mklist() function] cburlingnotes:fall2024:projects:msi3 [2024/10/03 01:38] (current) – [clearlist() function] jmerri10
Line 38: Line 38:
 Don't forget that since this is a function it needs a return value! Don't forget that since this is a function it needs a return value!
 =====obtain() function===== =====obtain() function=====
 +For the most part, the obtain() function should be the same as the obtain() function in msi2. Loop through your list until you find the node you would like to obtain, then return the list. 
 =====clearlist() function===== =====clearlist() function=====
 +The clearlist() function should be the same as in msi2, as well. Loop through your list and remove each node in the list using your rmnode() function until the list reaches NULL (end of list). Make sure the list's start and end is NULL, then return the list.
 =====rmlist() function===== =====rmlist() function=====
  
 The rmlist function will call clearlist() function. After the list is successfully cleared, then the list itself will be deallocated from memory. The rmlist function will call clearlist() function. After the list is successfully cleared, then the list itself will be deallocated from memory.
notes/fall2024/projects/msi3.1727915766.txt.gz · Last modified: 2024/10/03 00:36 by cburling