| Writing Documentation Using DocBook: A Crash Course | ||
|---|---|---|
| Prev | Chapter 10. Describing the Application's Interface | Next |

DocBook has a rather detailed way of marking up descriptions of function behaviour. The tag that introduces it is <funcsynopsis>. Here is an example:
Example 10-8. Describing a function in a C library API
<funcsynopsis> <funcsynopsisinfo>#include <stdlib.h></funcsynopsisinfo> <funcprototype> <funcdef>double <function>atof</function></funcdef> <paramdef>const char *<parameter>nptr</parameter></paramdef> </funcprototype> </funcsynopsis>
Here is how it looks: