constant

constant — A programming or system constant.

Synopsis

constant ::= [-]

Attributes

Common attributes.

Additional attributes:

  • class (enumeration)
    • “limit”

Description

A constant identifies a value as immutable. It is most often used to identify system limitations or other defined constants.

Processing expectations

Formatted inline.

Attributes

Common attributes.

class

Identifies the class of constant

Enumerated values:
“limit”

The value is a limit of some kind

Children [+]

This element contains 29 elements.

Examples

<article xmlns='http://docbook.org/ns/docbook'>
<title>Example constant</title>

<para>In ACL, <constant>main::PCS</constant> contains the path component
separator character.
</para>

</article>

In ACL, main::PCS contains the path component separator character.

<article xmlns='http://docbook.org/ns/docbook'>
<title>Example constant</title>

<para>The maximum legal length for a path name is 
<constant class='limit'>PATH_MAX</constant>, defined in
<filename class='headerfile'>limits.h</filename>.
</para>

</article>

The maximum legal length for a path name is PATH_MAX, defined in limits.h.

Last revised by Norman Walsh on 6 Jun 2011 (git hash: 6ffcc7640bbc5f852a318e452c9f210f03292cb9)