\n");
}
num_cells++;
if(++mod_cells>=row_size) mod_cells=0;
// take care of entry in fp_dir for this pix
fprintf(fp_dir, "\n", pix_fn);
/*
fprintf(fp_dir, "%s \n", pix_fn, cgiurl, pix_fn);
fprintf(fp_dir, " | \n", pix_fn);
*/
} // add_cell
void do_extension(FILE *fp_dir, char *ext) {
long h, num=0;
num_cells = 0;
h = _findfirst(ext, &fileinfo);
if(h>=0) {
add_cell(fp_dir, fileinfo.name);
while(!_findnext(h, &fileinfo)) {
add_cell(fp_dir, fileinfo.name);
}
}
_findclose(h);
printf(" %d %s\n", num_cells, ext);
} // do_extension
int main(int argc, char* argv[]) {
FILE *fp_dir;
int n, m;
// examine command line arguments
for(n=1;n\n");
fprintf(fp_dir, "\n\n");
fprintf(fp_dir, " %s\n", title);
fprintf(fp_dir,
" \n", cgiurl);
fprintf(fp_dir, "\n\n\n");
fprintf(fp_dir, "%s
\n\n", title);
fprintf(fp_dir, "\n\n");
do_extension(fp_dir, "*.jpg");
do_extension(fp_dir, "*.gif");
do_extension(fp_dir, "*.png");
fprintf(fp_dir, "\n\n");
fprintf(fp_dir, "
\n\n
\n\n");
fclose(fp_dir);
return 0;
} // main