home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff280.lzh
/
Graph
/
list.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-11-20
|
508b
|
25 lines
/*
* GRAPH, Version 1.00 - 4 August 1989
*
* Copyright 1989, David Gay. All Rights Reserved.
* This software is freely redistrubatable.
*/
#include <exec/types.h>
#include <stddef.h>
#include "list.h"
#include "tracker.h"
/* Free all elements in list (each of size size) */
void free_list(list *l, size_t size)
{
node *scan, *next;
for (scan = first(l); next = succ(scan); scan = next)
FreeMem(scan, size);
/* Be safe */
new_list(l);
}