#include FILE *document; char *HTML_OPEN = "\n"; char *HTML_CLOSE = "\n"; char *HEAD_OPEN = "\t\n"; char *HEAD_CLOSE = "\t\n"; char *SCRIPT_OPEN = "\t\n"; char *CSS_OPEN = "\t\n"; char *BODY_OPEN = "\t\n"; char *BODY_CLOSE = "\t\n"; char *TITLE = "\t\t\n"; char *META = "\t\t\n"; char *CSS_CONTENT = "\t\tbody {\n" "\t\t\tbackground:\n" "\t\t\tcolor:\n" "\t\t\tfont-size:\n" "\t\t\tfont-family:\n" "\t\t\tmargin:\n" "\t\t\tpadding:\n" "\t\t\t\n" "\t\t\t\n" "\t\t\t\n" "\t\t}\n" "\t\ta:hover {\n" "\t\t\tbackground:\n" "\t\t\tcolor:\n" "\t\t\t\n" "\t\t}\n" "\t\ta:active, link, visited {\n" "\t\t\tbackground:\n" "\t\t\tcolor:\n" "\t\t\t\n" "\t\t}\n" "\t\t/* temp {\n" "\t\t\tbackground:\n" "\t\t\tcolor:\n" "\t\t\tfont-size:\n" "\t\t\tfont-family:\n" "\t\t\tmargin:\n" "\t\t\tpadding:\n" "\t\t\tborder-style:\n" "\t\t\tborder-width:\n" "\t\t} */\n"; /* "\t\t \n" "\t\t\t\n" "\t\t\t\n" "\t\t\t\n" "\t\t \n" */ char *CSS_CONTENT_B = "\n"; char *BODY_CONTENT = "\n"; char *BODY_CONTENT_B = "\t\t
zurück
\n"; char *SCRIPT_CONTENT = "\n"; char *SCRIPT_CONTENT_B = "\n"; int write_string_to_disk(char *str) { fputs(str,document); } int write_document(char *doc) { document=fopen(doc, "w"); write_string_to_disk(HTML_OPEN); write_string_to_disk(HEAD_OPEN); write_string_to_disk(TITLE); write_string_to_disk(META); write_string_to_disk(HEAD_CLOSE); write_string_to_disk(CSS_OPEN); write_string_to_disk(CSS_CONTENT); write_string_to_disk(CSS_CLOSE); write_string_to_disk(SCRIPT_OPEN); write_string_to_disk(SCRIPT_CONTENT); write_string_to_disk(SCRIPT_CLOSE); write_string_to_disk(BODY_OPEN); write_string_to_disk(BODY_CONTENT); write_string_to_disk(BODY_CONTENT_B); write_string_to_disk(BODY_CLOSE); write_string_to_disk(HTML_CLOSE); fclose(document); } int help() { fprintf(stdout, "--help, planned for future use...\n"); } int main(int argc, char *argv[]) { int i; write_document("mkindex.html"); return 1; }