topical media & game development

talk show tell print

lib-ch-example-cgi-date.ch / ch



  #!/bin/ch
  /* Example CH CGI program that displays 
     the time in plain ASCII text.
  */
  
  include<stdio.h>
  int main() {
    printf("Content-type: text/plain\n\n");
    printf("Today's date is: \%s\n", __DATE__);
    printf("The time is: \%s\n", __TIME__);
  }
  


(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.