X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmarcdisp.c;h=8f3ebc04bfd33a625021e3741cd9129e3569b1fe;hb=9773a01f6dae65e5f9c424b3f2bc7454b8270cfc;hp=8a25d609b48a992bdd401d0e22d5754fd7609bae;hpb=4bed35ab0329789b94620258dc57db5db37bfe02;p=yaz-moved-to-github.git diff --git a/src/marcdisp.c b/src/marcdisp.c index 8a25d60..8f3ebc0 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ @@ -274,16 +274,6 @@ void yaz_marc_add_subfield(yaz_marc_t mt, } } -int atoi_n_check(const char *buf, int size, int *val) -{ - int i; - for (i = 0; i < size; i++) - if (!isdigit(i[(const unsigned char *) buf])) - return 0; - *val = atoi_n(buf, size); - return 1; -} - void yaz_marc_set_leader(yaz_marc_t mt, const char *leader_c, int *indicator_length, int *identifier_length,