Updated information about YAZ.
[yaz-moved-to-github.git] / odr / odr_mem.c
index 20768a5..77af041 100644 (file)
@@ -4,7 +4,13 @@
  * Sebastian Hammer, Adam Dickmeiss
  *
  * $Log: odr_mem.c,v $
- * Revision 1.14  1998-07-20 12:38:15  adam
+ * Revision 1.16  1999-11-30 13:47:11  adam
+ * Improved installation. Moved header files to include/yaz.
+ *
+ * Revision 1.15  1999/03/31 11:18:25  adam
+ * Implemented odr_strdup. Added Reference ID to backend server API.
+ *
+ * Revision 1.14  1998/07/20 12:38:15  adam
  * More LOG_DEBUG-diagnostics.
  *
  * Revision 1.13  1998/02/11 11:53:34  adam
@@ -51,8 +57,8 @@
  */
 
 #include <stdlib.h>
-#include <odr.h>
-#include <xmalloc.h>
+#include <yaz/odr.h>
+#include <yaz/xmalloc.h>
 
 /* ------------------------ NIBBLE MEMORY ---------------------- */
 
@@ -74,6 +80,11 @@ void *odr_malloc(ODR o, int size)
     return nmem_malloc(o ? o->mem : 0, size);
 }
 
+char *odr_strdup(ODR o, const char *str)
+{
+    return nmem_strdup(o->mem, str);
+}
+
 int odr_total(ODR o)
 {
     return o->mem ? nmem_total(o->mem) : 0;