📄 pblisamfind.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD> <TITLE>int pblIsamFind</TITLE> <META NAME="GENERATOR" CONTENT="DOC++ 3.4.9"></HEAD> <center><H2>Program Base Library Functions</H2></center><H2>int <A HREF="#DOC.DOCU">pblIsamFind</A></H2><H2>( <!1><A HREF="pblIsamFile_t.html">pblIsamFile_t</A>* isamfile, int which,<BR> int index, unsigned char* skey, int skeylen,<BR> unsigned char* okey )</H2><BLOCKQUOTE> find a record in an ISAM file, set the current record</BLOCKQUOTE><A NAME="DOC.DOCU"></A><HR><H2>Documentation</H2><BLOCKQUOTE>find a record in an ISAM file, set the current record<P>parameter which specifies which record to find relativeto the search key specified by skey and skeylen.the following values for which are possible<P><BR><B> PBLEQ </B> - find a record whose key is equal to skey<BR><B> PBLFI </B> - find the first record that is equal<BR><B> PBLLA </B> - find the last record that is equal<BR><B> PBLGE </B> - find the last record that is equal or the smallestrecord that is greater<BR><B> PBLGT </B> - find the smallest record that is greater<BR><B> PBLLE </B> - find the first record that is equal or the biggestrecord that is smaller<BR><B> PBLLT </B> - find the biggest record that is smaller<P>parameter index specifies which of the keys to use<P><P><B>RESTRICTIONS</B>:<BR> - the out parameter okey must point to a memory area that isbig enough to hold any possible key, i.e 255 bytes<P></BLOCKQUOTE><DL><DT><DT><B>Parameters:</B><DD><B>isamfile</B> - ISAM file to search in <BR><B>which</B> - mode to use for search <BR><B>index</B> - index of key to use for search <BR><B>skey</B> - key to use for search <BR><B>skeylen</B> - length of search key <BR><B>okey</B> - buffer for result key <BR><DT><B>Returns:</B><DD> int rc >= 0:<UL><LI> call went ok,the value returned is the lengthof the key of the record found,<LI> the key of the record is copied to okey,<LI> the current record of the file is set to therecord found</UL><BR> int rc < 0:<UL><LI> some error occured, see pbl_errnoespecially PBL_ERROR_NOT_FOUND, if there is nomatching record</UL><BR><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I></P><HR><BR>This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -