![]() |
das2C
das core C utilities (v3)
|
#include <stdio.h>#include <string.h>#include <SpiceUsr.h>#include <das3/util.h>#include <das3/send.h>
Go to the source code of this file.
Since das1, readers have been required to send only valid das stream bytes to stdout. Errors and other status information go to stderr. This has made linking against SPICE somewhat problematic as SPICE outputs it's status and error messages to stdout by default.
This code contains a recommended way to redirect SPICE errors to das error packets. Das readers that communicate with spice should include this header, or redirect SPICE status messages on thier own in a similar manner.
This header has no library code behind it, the functions are all defined here so than libdas3.so/dll isn't shipped with undefined symbols. A program that includes this header must also include the SpiceUsr.h. and must link against SPICE itself.