paramdef — Information about a function parameter in a programming language.



Common attributes and common linking attributes.

Additional attributes:

  • choice (enumeration) [default=“opt”]
    • “opt”
    • “req”


In the syntax summary for a function in a programming language, paramdef provides the description of a parameter to the function. Typically, this includes the data type of the parameter and its name. For parameters that are pointers to functions, it also includes a summary of the nested parameters.

Within the paramdef, the parameter name is identified with parameter, and the rest of the content is assumed to be the data type.

In the following definition, str is the name of the parameter and char * is its type:

<paramdef>char *<parameter>str</parameter></paramdef>

Sometimes a data type requires punctuation on both sides of the parameter. For example, the a parameter in this definition is an array of char *:

<paramdef>char *<parameter>a</parameter>[]</paramdef>

Processing expectations

Formatted inline. For a complete description of the processing expectations, see funcsynopsis.


Common attributes and common linking attributes.


Indicates optionality.

Enumerated values:

Formatted to indicate that it is optional.


Formatted to indicate that it is required.


These elements contain paramdef: funcprototype.

Children [+]

This element contains 20 elements.


  1 <article xmlns=''>
  2 <title>Example paramdef</title>
  4 <funcsynopsis>
  6   <funcdef>int <function>max</function></funcdef>
      <paramdef>int <parameter>int1</parameter></paramdef>
  8   <paramdef>int <parameter>int2</parameter></paramdef>
 10 </funcsynopsis>
 12 </article>

int max(int1, int2);
int int1;
int int2;

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