HPlogo HP C/HP-UX Reference Manual: Version A.05.55.02 > Chapter 1 What is HP C?

HP C Online Help

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

Online help for HP C is available for HP 9000 workstation and server users. HP C Online Help can be accessed from an HTML browser of your choice. It consists of HTML files that contain the following reference and how-to information:

  • What is HP C?

  • Program organization

  • Compiling & running HP C programs

  • Optimizing HP C programs

  • Parallel options & pragmas

  • Data types & declarations

  • Expressions & operators

  • Statements

  • Preprocessing directives

  • Calling other languages

  • Programming for portability

  • Migrating C programs to HP-UX

  • Error message descriptions

Prerequisites for using HP C Online Help

Before you can begin using HP C Online Help, you should review the following display and browser information. Some reconfiguration of your environment variables may be required.

  • You must set the DISPLAY environment variable to a (graphical mode) value that can accommodate the display of an HTML browser.

  • You may set the BROWSER environment variable to point to the location of the your HTML browser. If you do not do this, the compiler will automatically run the browser located in /opt/ns-navgold/bin/netscape or in /opt/ns-communicator/netscape.

  • You may set the CROOTDIR environment variable to specify the root directory of the online help source. If CROOTDIR is not set, the URL of the HP C Online Help defaults to file:/opt/ansic/html/guide/${LOCALE}/c_index.html. This default is based on the assumption that the compiler binaries are located in /opt/ansic/bin.

Accessing HP C Online Help

To access the HP C Online Help, you must be logged onto a system where the most recent version of the HP C compiler is installed. Typing the following at the command line invokes an HTML browser, which displays the main HTML index file for the HP C Online Help system:

/opt/ansic/bin/cc +help

The actual location of the HTML files is:

file:/${CROOTDIR}/html/guide/${LOCALE}/c_index.html.

If the environment variable CROOTDIR is not set, the path will be formed relative to the compiler’s root directory; this is usually /opt/ansic. The previous section contains instructions on how to set CROOTDIR.

NOTE: If the browser path set by the BROWSER environment variable does not exist, or if the default browser paths /opt/ns-navgold/bin/netscape or /opt/ns-communicator/netscape do not exist, then you must set the BROWSER environment variable appropriately.
© Hewlett-Packard Development Company, L.P.