DocBook: The Definitive GuideBy Norman Walsh & Leonard Muellner1st Edition October 1999 1-56592-580-7, Order Number: 5807 652 pages, $36.95 , Includes CD-ROM |
FuncDef
Synopsis
Mixed Content Model
FuncDef ::= ((#PCDATA|Replaceable|Function)*)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.
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.
Back to: DocBook: The Definitive Guide
© 2001, O'Reilly & Associates, Inc.