
55
int total_field_no
This argument is the field’s quantity of
each record.
int total_record_no
Total amount of records in the file. If
does not know the total amount, you
can insert - 1, that will calculate
automatically by the system.
Returns
:
0: Initialize defeat.
1: Initialize success.
Ini_Search_D
Purpose
:
Use “Ini_Search_D” can initiate the file search function in disk D.
Syntax
:
int Ini_Search_D(char* filehd_D, unsigned int filesize_D,
_DBMS* F_Search, unsigned char *pusFielddlt, int record_type,
int record_length, int total_field_no, int total_record_no);
Example call
:
Example 1: Variable field length
_DBMS fsearsh;
char *filepoint;
unsigned file_size;
filepoint = _fopenLookup (“d:\\Lookup\\data.txt”,&file_size);
Ini_Search_D(filepoint, file_size, &fsearch,’,’,1,0,5,0);
Example 2: Regular field length
_DBMS fsearsh;
char *filepoint;
unsigned file_size;
unsigned char field_size[5]={6,5,4,5,6};
filepoint = _fopenLookup (“d:\\Lookup\\data.txt”,&file_size);
Ini_Search_D(filepoint, file_size, &fsearch, field_size,0,26,5,0);
Includes
:
#include “DBMS.h ”
This function can initialize a work of searching file. After inserting
every argument, you can use _ DBMS* F _ Search to search files.
Several describe the argument as follows:
argument description
char* filehd_D
An opened file index of D.
Description
:
unsigned int filesize_D
Size of this file.
Содержание PT-10
Страница 4: ...3 Keyboard Wedge 99 System 101 Power 102 Other 102 ...
Страница 13: ...12 6 Development Flow Chart ...
Страница 53: ...52 Returns No returns Notes ...