X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fodr_mem.c;h=55478c0c033262ecd54ad5121b0cca9c22b86f27;hp=6a2ef688288c99a8c3c0ec67fc8d4407c1eaa75f;hb=379504a233e3e2cc85bca1e7b6d864f1395aec7c;hpb=fe507b6b15788a3a8e58063d9dae52532a5229a5 diff --git a/src/odr_mem.c b/src/odr_mem.c index 6a2ef68..55478c0 100644 --- a/src/odr_mem.c +++ b/src/odr_mem.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2009 Index Data * See the file LICENSE for details. - * - * $Id: odr_mem.c,v 1.11 2007-05-06 20:12:20 adam Exp $ */ /** * \file odr_mem.c @@ -39,6 +37,11 @@ char *odr_strdup(ODR o, const char *str) 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); @@ -119,6 +122,7 @@ int odr_seek(ODR o, int whence, int offset) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab