Search the Catalog
DocBook: The Definitive Guide

DocBook: The Definitive Guide

By Norman Walsh & Leonard Muellner
1st Edition October 1999
1-56592-580-7, Order Number: 5807
652 pages, $36.95 , Includes CD-ROM



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


Mixed Content Model

FuncDef ::=


Common attributes

Tag Minimization

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


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.


These elements contain FuncDef: FuncPrototype, FuncSynopsis.


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


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

int rand(void);

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

Back to: DocBook: The Definitive Guide Home | O'Reilly Bookstores | How to Order | O'Reilly Contacts
International | About O'Reilly | Affiliated Companies | Privacy Policy

© 2001, O'Reilly & Associates, Inc.