next up previous contents index
Next: Sample header: LALPrimer.h Up: Header LALStatusMacros.h Previous: Notes   Contents   Index

Example: A LAL primer

The following sections give a sample program program LALPrimerTest.c, along with its supporting header file LALPrimer.h and function module LALPrimer.c. The program itself is trivial to the point of silliness: it takes two arguments from the command line and computes their ratio. (Optionally it can take a third command line argument to set the lalDebugLevel.) It is intended simply to illustrate how to use the LAL status structure and macros in an actual, complete piece of code.

For a more fully developed sample program, see the package hello. That package also demonstrates how to document a package using the autodocumentation utilities, which the LALPrimer routines ignore.



Author: Creighton, J. D. E. and Creighton, T. D.
$Id: LALStatusMacros.h,v 1.23 2002/04/12 16:26:25 jolien Exp $



LAL test account 2003-10-23