topical media & game development

talk show tell print

lib-ch-example-cgi-sendfile.ch / ch



  #!/bin/ch
  /* Example Ch CGI program that send a file.
  */
  
  include<stdio.h>
  int main() {
    setvbuf(stdout, NULL, _IONBF, 0); 
    /* printf("Location: /file_path/filename\n\n"); */
    printf("Location: http://www.softintegration.com/index.html\n\n");
    /* or printf("Location: /index.html\n\n"); */
  }
  


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