From 6cec9293846dc1aba8c0e2f5e46fc029a727f4ed Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 1 Mar 2009 23:04:09 +0100 Subject: [PATCH] Document yaz_errno utils --- include/yaz/nmem.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/yaz/nmem.h b/include/yaz/nmem.h index 6f0d230..901b118 100644 --- a/include/yaz/nmem.h +++ b/include/yaz/nmem.h @@ -124,8 +124,20 @@ YAZ_EXPORT void nmem_destroy(NMEM n); */ YAZ_EXPORT void *nmem_malloc(NMEM n, int size); +/** \brief returns errno + \returns errno value +*/ YAZ_EXPORT int yaz_errno(void); + +/** \brief sets errno to value + \param v errno value +*/ YAZ_EXPORT void yaz_set_errno (int v); + +/** \brief returns system error description string + \param buf buffer for result + \param max maximum number of bytes to store +*/ YAZ_EXPORT void yaz_strerror(char *buf, int max); YAZ_END_CDECL -- 1.7.10.4