libsrv is a library containing common functionality used by
the various pieces of the package. Using libsrv requires
following some simple procedures.
Specification
- The application must #include <libsrv.H> to access
the class and function definitions. It is recommended that the
application #include <survivor.H>, which will
automatically include this file.
- The application must call libsrvinit(argv[0]) at the
beginning of its main() function. This will perform the
following:
- Set the global variable progname to point to the
"basename" of argv[0].
- Establish and initialize the (weak) psuedo-random number generator
as the global object prng.
- Set to NULL the global objects args and cf.
- The application must call libsrvexit() at the end of its
main() function. This will clear progname and
deallocate prng, args, and cf, if they
are allocated.
$Date: 2006/11/20 00:11:47 $
$Revision: 0.3 $
|
keywords
|