html.c
Upload User: shbosideng
Upload Date: 2013-05-04
Package Size: 1555k
Code Size: 1k
Category:

SNMP

Development Platform:

C/C++

  1. /*
  2. Iulian Radu [v2.0@07.1999]
  3. */
  4. void mkhtmlh(){ /*use fh global*/
  5. if(!fh) return;
  6. fprintf(fh,"<HTML>n");
  7. fprintf(fh,"<HEADER>n");
  8. fprintf(fh,"<TITLE>n");
  9. if(title[0]) fprintf(fh,title);
  10. else fprintf(fh,btxt[0]);
  11. fprintf(fh,"</TITLE>n");
  12. fprintf(fh,"</HEADER>n");
  13. if(body[0]) fprintf(fh,"<BODY %s>n",body);
  14. else fprintf(fh,"<BODY>n");
  15. }
  16. void closehtml(){ /*use fh global*/
  17. int i;
  18. if(!fh) return;
  19. for(;identl;identl--){
  20.     for(i=1;i<identl;i++) fprintf(fh,"t");
  21.     fprintf(fh,"</UL>n");}
  22. fprintf(fh,"</BODY>n");
  23. fprintf(fh,"</HTML>n");
  24. fclose(fh);
  25. fh=NULL;
  26. }