home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_300
/
308_01
/
replace.inc
< prev
next >
Wrap
Text File
|
1990-06-17
|
829b
|
36 lines
/*
* replace.inc -- include file for LIST.C
*/
static int replace0(void *newitem, int newsize);
static int replace1(void *newitem, int newsize);
static int replace2(void *newitem, int newsize);
static int replace3(void *newitem, int newsize);
static int (*replace[MAXLISTS])() = { replace0, replace1, replace2, replace3 };
static int replace0(void *newitem, int newsize)
{
list = listptr[0];
return lreplitem(newitem, newsize);
}
static int replace1(void *newitem, int newsize)
{
list = listptr[1];
return lreplitem(newitem, newsize);
}
static int replace2(void *newitem, int newsize)
{
list = listptr[2];
return lreplitem(newitem, newsize);
}
static int replace3(void *newitem, int newsize)
{
list = listptr[3];
return lreplitem(newitem, newsize);
}