next up previous
Next: Creating the Makefile by Up: Creating config.h by hand Previous: Functions

Replacement Functions

The tools library fptools defines many functions that aren't standard on all systems. Most of them do not differ in behavior from their originals, but might be slightly slower. But since they are usually only needed in non-speed-critical sections, the replacements are used throughout the library. For a full listing of the available replacement functions, see section [*].

However, there are two functions, strerror and tempnam, that aren't fully implemented. The replacement strerror does not have a table of error messages and only produces the error number as string, and the ``fake'' tempnam does not necessarily use a proper temp directory.

Because some functionality is missing, the replacement functions should only be used if the original is not available.

strerror
If your system does not provide a strerror function of its own, define to _FP_strerror. This causes the replacement function to be used throughout the library.
tempnam
If your system does not provide a tempnam function of its own, define to _FP_tempnam. This causes the replacement function to be used throughout the library. Must not be defined if the function is in fact available.


next up previous
Next: Creating the Makefile by Up: Creating config.h by hand Previous: Functions
2004-07-27