index-sample.cgi.c
来自「这是又一个C语言解释器, 我们可以方便地扩展其功能, 并将其用于我们的工作中」· C语言 代码 · 共 26 行
C
26 行
/* index-sample.cgi.c - sample index.cgi program Will determine whether the browser accepts images or not and sends the appropriate page. Eugene Kim, eekim@fas.harvard.edu $Id: index-sample.cgi.c,v 1.2 1998/05/05 19:42:58 edb Exp $ Copyright (C) 1995 Eugene Eric Kim All Rights Reserved*/#include <stdio.h>#include "cgi-lib.h"#include "html-lib.h"#define TEXT_PAGE "/index-txt.html" /* text HTML home page */#define IMAGE_PAGE "/index-img.html" /* graphical HTML home page */int main() { if (accept_image()) show_html_page(TEXT_PAGE); else show_html_page(IMAGE_PAGE); exit(0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?