home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource5
/
352_01
/
vlmatch.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1991-04-29
|
308b
|
14 lines
// VLMATCH.CPP
// code to match a String to a vlist.
#include "dblib.h"
int Vlist::match ( void *data )
{
int vn = n;
for ( int i=0; i<vn; ++i )
{
if ( 0==Vlist::compare (data,i) ) break;
}
return i; // Vlist::match()
}
//--------------- end VLMATCH.CPP ------------------