topical media & game development

talk show tell print

lib-ch-example-sample-plot1-1.cgi / cgi



  #!/bin/ch
  
  /* plot1_1.cgi */ 
  include <stdio.h>
  include <cgi.h>
  
  void WriteHTML() {
      class CResponse Response;
  
      Response.setContentType("text/html");
      Response.begin();
      printf("<html>\n");
      printf("<head>\n");
      printf("<title>\n");
      printf("Web Plot\n");
      printf("</title>\n");
      printf("</head>\n");
      printf("<body bgcolor=#FFFFFF>\n");
      printf("<p>\n");
      printf("<center>\n");
      printf("<img src=\"/cgi-bin/chcgi/toolkit/demos/sample/plot2_1.ch");
      printf("\">\n");
      printf("</center>\n");
      printf("<p>\n");
      printf("
\n"); printf("</body>\n"); printf("</html>\n"); Response.end(); } int main() { setvbuf(stdout, NULL, _IONBF, 0); WriteHTML(); }


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.