/* Generic HTML writing functions */ #include #include #include "DD.h" #include "FD.h" #include "GLOBALS.h" html_ul( FILE *o) { fprintf(o,""); } html_li( FILE *o) { fprintf(o,"
  • " ); } html_eli(FILE *o) { fprintf(o,"
  • "); } html_hn( FILE *o,char *h) { fprintf(o,"<%s>",h ); } html_ehn(FILE *o,char *h) { fprintf(o,"",h); } html_start(FILE *o){ /* Generic header stuff */ fprintf(o,"\n"); fprintf(o," \n"); fprintf(o,"\n\n"); } html_end(FILE *o){ /* Generic footer stuff */ fprintf(o,""); } html_entryli(FILE *o,char *string,char *href,char *heading){ /* do
  • <"heading">"string"
  • */ html_li(o); fprintf(o,"",href); html_hn(o,heading); fprintf(o,"%s",string); html_ehn(o,heading); fprintf(o,""); html_eli(o); } html_entry(FILE *o,char *string,char *href){ /* do "string" */ fprintf(o,"",href); fprintf(o,"%s",string); fprintf(o,""); } int html_FlistTabStart(FILE *curFd) { /* fprintf(curFd,"Source Files"); */ /* Begin table */ fprintf(curFd, ""); } int html_FlistColHeader(FILE *curFd) /* File listing table column format */ { fprintf(curFd,""); fprintf(curFd,""); fprintf(curFd,""); fprintf(curFd,""); fprintf(curFd,""); } int html_FlistColRecord(FILE *curFd, char *dirNam, char *fNam, char *hfNam, char *descrip) /* File listing table column format */ { fprintf(curFd,""); fprintf(curFd,""); fprintf(curFd,""); fprintf(curFd,""); fprintf(curFd,""); } int html_FlistTabStop(FILE *curFd) { /* End table */ fprintf(curFd, "
    "); fprintf(curFd,"Directory "); fprintf(curFd,""); fprintf(curFd,"File Name"); fprintf(curFd,""); fprintf(curFd,"Description"); fprintf(curFd,"
    "); fprintf(curFd,"%s",dirNam); fprintf(curFd,""); fprintf(curFd,"",SRCSUF,hfNam); fprintf(curFd,"%s",fNam); fprintf(curFd,""); fprintf(curFd,""); fprintf(curFd,"%s",descrip); fprintf(curFd,"
    "); }