Listing 1 A web for "hello, world"

-------------------------------------------------------------
A Simple Example ........................................ 1
Index ................................................... 4
-------------------------------------------------------------
1. A Simple Example. This is a trivial example of a CWEB
program. It is, of course, the classic "hello, world" program we all
know and love:
   Header files needed by the program 3 
  main (void)
  {
     Print the message "hello, world" 2 
  }

2. Naturally, we use printf to do the dirty work:
 Print the message "hello, world" 2  
  printf ("hello, world\n");
This code is used in section 1.

3. The prototype for printf is in the standard header, <stdio.h>.
 Header files needed by the program 3  
#include <stdio.h>
This code is used in section 1.

-------------------------------------------------------------
4. Index.
main: 1.                          printf: 2, 3.
-------------------------------------------------------------
 Header files needed by the program 3  Used in section 1.
 Print the message "hello, world" 2  Used in section 1.