home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
pcmag
/
vol7n14.arc
/
FIG8.TXT
< prev
next >
Wrap
Text File
|
1988-06-30
|
711b
|
34 lines
struct _list
{
int next;
int row;
int column;
void *video_region;
int region_size;
}
#define LIST_MEMBERS 20
struct _list list[LIST_MEMBERS];
int remove_from_list(int offset)
{
int i;
for(i = 0; i < LIST_MEMBERS; i++)
if(list[i].next == offset)
{
list[i].next = list[offset].next;
list[offset].next = 0xffff;
if(list[offset].video_region)
free(list[offset].video_region);
return TRUE;
}
return FALSE;
}
.
.
if(remove_from_list(5))
printf("\nList member 5 successfully removed from list");
.
.