X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2Fcomstack.xml;fp=doc%2Fcomstack.xml;h=0be19367559a21c6417430dec56e2fee4a20937e;hb=c2317ad6444bd2a90a45fd519f286a7cef49c776;hp=e9516969020cd032fec80ec9057dfb240506e291;hpb=57b3990d07f7ed994884bc61504eb5a1962526eb;p=yaz-moved-to-github.git
diff --git a/doc/comstack.xml b/doc/comstack.xml
index e951696..0be1936 100644
--- a/doc/comstack.xml
+++ b/doc/comstack.xml
@@ -541,39 +541,37 @@ if (buf)
- When a function (including the data exchange functions) reports an
- error condition, use the function
- cs_errno() to determine the cause of the
- problem. The function
+ The error code for the COMSTACK can be retrieved using C macro
+ cs_errno which will return one
+ of the error codes CSYSERR,
+ CSOUTSTATE,
+ CSNODATA, ...
- void cs_perror(COMSTACK handle char *message);
+ int cs_errno(COMSTACK handle);
- works like perror(2) and prints the
- message argument, along with a system message, to
- stderr. Use the character array
+ You can the textual representation of the error code
+ by using cs_errmsg - which
+ works like strerror(3)
- extern const char *cs_errlist[];
+ const char *cs_errmsg(int n);
-
+
- to get hold of the message, if you want to process it differently.
- The function
+ It is also possible to get straight to the textual represenataion
+ without the error code by using
+ cs_strerror.
-
+
- const char *cs_stackerr(COMSTACK handle);
+ const char *cs_strerror(COMSTACK h);
-
-
- Returns an error message from the lower layer, if one has been
- provided.
-
+
Summary and Synopsis