Module: htangle (htangle.c)
-
Purpose: to remove HTML comments from C (or any) code.
-
Language/Compiler/O/S: ANSI C, SCO CC or GNU gcc: UNIX BCC 3.0: DOS/Windows
3.1
-
Author: Steve Gibson
-
Date: 6/29/99
-
Revision History [from RCS]
-
After HTMLEXTRACT by Wade Hampton
$Log: htangle.c,v $
*
* Revision 1.1 1999/04/26 15:12:45 steveg
* Initial revision
*
Notes:
-
Usage: htangle <ifile.[c,C,CC,h] >ifile.html
-
htangle -iinfile >ifile.html
-
Extracts text bracketed by <pre> and </pre>
-
Puts at start, at end
-
Uses stdin for input, stdout for output, or uses a file name.
-
To build: [cc,gcc] [-g] -o htangle htangle.c
Requirements:
-
(1) Remove HTML from source code for on-line documentation.
includes click here to see the source
for includes
RCS ID String: $Id: htangle.c,v 1.4 1999/04/26 15:43:43 steveg Exp $
defines
Copyright (C) 1999 Steve Gibson (under GPL)
/************************************************************************/
/************************************************************************
Procedure: PrintHelp
-
Purpose: print help for this module
-
Inputs: none
-
Outputs: stderr
Notes:
-
Prints help info on standard output
Requirements:
-
(no number) - all programs should print help with -h, -H or -? options
************************************************************************/
PrintHelp See Code
************************************************************************
Procedure: PrintVersion
-
Purpose: print version for this module
-
Inputs: none
-
Outputs: stderr
Notes:
-
Prints version number for program
Requirements:
-
(no number) - all programs should print version with -V option
PrintVersion
Procedure: main
-
Purpose: module main procedure
-
Inputs: none
-
Outputs: stdout, stderr
Notes:
-
Usage: htangle -ifile.html
-
Extracts text bracketed by and
-
Puts at start, at end
-
Uses stdin for input, stdout for output, should be modified to accept a
file name and cmd-line args (e.g., use getopt).
Requirements:
-
(1) Extract HTML from source code
Main See Code