* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-/* $Id: odr.h,v 1.28 2007-05-08 08:22:35 adam Exp $ */
+/* $Id: odr.h,v 1.29 2007-09-11 08:35:42 adam Exp $ */
/**
* \file odr.h
YAZ_EXPORT void *odr_malloc(ODR o, int size);
YAZ_EXPORT char *odr_strdup(ODR o, const char *str);
YAZ_EXPORT char *odr_strdupn(ODR o, const char *str, size_t n);
+YAZ_EXPORT char *odr_strdup_null(ODR o, const char *str);
YAZ_EXPORT int *odr_intdup(ODR o, int v);
YAZ_EXPORT Odr_oct *odr_create_Odr_oct(ODR o, const unsigned char *buf,
int sz);
* Copyright (C) 1995-2007, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: odr_mem.c,v 1.11 2007-05-06 20:12:20 adam Exp $
+ * $Id: odr_mem.c,v 1.12 2007-09-11 08:35:42 adam Exp $
*/
/**
* \file odr_mem.c
return nmem_strdup(o->mem, str);
}
+char *odr_strdup_null(ODR o, const char *str)
+{
+ return nmem_strdup_null(o->mem, str);
+}
+
char *odr_strdupn(ODR o, const char *str, size_t n)
{
return nmem_strdupn(o->mem, str, n);