FuncDef

Name

FuncDef -- A function (subroutine) name and its return type

Synopsis

Mixed Content Model

FuncDef ::=
((#PCDATA|Replaceable|Function)*)

Attributes

Common attributes

Tag Minimization

Both the start- and end-tags are required for this element.

Description

A FuncDef contains the name of a programming language function, and its return type.

Within the FuncDef, the function name is identified with Function, and the rest of the content is assumed to be the return type.

In the following definition, max is the name of the function and int is the return type:

<funcdef>int <function>max</function></funcdef>

Processing expectations

Formatted inline. For a complete description of the processing expecations, see FuncSynopsis.

Parents

These elements contain FuncDef: FuncPrototype, FuncSynopsis.

Children

The following elements occur in FuncDef: Function, Replaceable.

In some contexts, the following elements are allowed anywhere: BeginPage, IndexTerm.

See Also

FuncParams, FuncPrototype, FuncSynopsisInfo, Function, ParamDef, Parameter, ReturnValue, VarArgs, Void

Examples

<!DOCTYPE funcsynopsis PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
<funcsynopsis>
<funcprototype>
<funcdef>int <function>rand</function></funcdef>
  <void>
</funcprototype>
</funcsynopsis>

int rand(void);

For additional examples, see also FuncSynopsis, ParamDef, VarArgs.

Copyright © 1999 O'Reilly & Associates, Inc. All rights reserved.


HIVE: All information for read only. Please respect copyright!
Hosted by hive КГБ: Киевская городская библиотека