int main()
{
char* f_ptr, *ch_ptr;
int i, y, found_flag, hcount=1;
char ch[100], ptr[100], headf[100][100];
ifstream fin_get[100];
/* Initialize the header where the search will begin.
Remember to change the path to where your own lib's
are located.
*/
strcpy(headf[0],"c:progra~1\\micros~1\\vc98\\include\\windows.h");
cout<<"Creating File...\n";
for(int h_c=0;h_c<100;h_c++)
{
fin_get[h_c].open(headf[h_c]);
while(fin_get[h_c].getline(ch,100))
{
found_flag=1;
if(!strncmp(ch,"#include",8))
{
if(f_ptr=strchr(ch,'"'))
;
else
f_ptr=strchr(ch,'<');
for(i=0;f_ptr[i];i++)
f_ptr[i]=f_ptr[i+1];
if(ch_ptr=strchr(f_ptr,'"'))
*ch_ptr=0;
else
*(ch_ptr=strchr(f_ptr,'>'))=0;
strcpy(ptr,"c:progra~1\\micros~1\\vc98\\include\\");
strcat(ptr,f_ptr);
for(y=0;y { if(!strcmp(headf[y],ptr)) { found_flag=0; break; } } if(found_flag) strcpy(headf[hcount++],ptr); } } } for(i=0;i fin_get[i].close(); ofstream fout("inc_find.doc"); for(i=0;i fout< fout.close(); return 0; }