Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
PUBLIC
◄Directive Summary► ◄Summary► ◄Example►
──────────────────────────────────────────────────────────────────────────────
Syntax: PUBLIC [langtype] name [,[langtype] name]...
Makes one or more variables available to other modules in the program.
PUBLIC declarations can be placed anywhere in the source module in
which the symbol is defined. Text macros or text equates cannot be
declared public.
langtype C, BASIC, PASCAL, or FORTRAN. The C langtype appends an
underscore to the name as output to the object file.
name The name of a variable, label, or numeric equate defined
within the current source file.
See Also: EXTRN, COMM
-♦-