X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fatoin.c;h=e7718c5797de6e45cae412325a4f5337317078ec;hp=47f5cd84dc9159bfdb2a29affe771278594aa94e;hb=1f41a1d415d2ab138050a96020ed39caa0c4e323;hpb=05c274ef315384faafcc5900c17468f0ea2474e6 diff --git a/src/atoin.c b/src/atoin.c index 47f5cd8..e7718c5 100644 --- a/src/atoin.c +++ b/src/atoin.c @@ -1,8 +1,6 @@ -/* - * Copyright (c) 1997-2004, Index Data +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2008 Index Data * See the file LICENSE for details. - * - * $Id: atoin.c,v 1.3 2004-10-15 00:18:59 adam Exp $ */ /** @@ -16,7 +14,7 @@ #include #include -#include +#include /** * atoi_n: like atoi but reads at most len characters. @@ -29,8 +27,16 @@ int atoi_n (const char *buf, int len) { if (isdigit (*(const unsigned char *) buf)) val = val*10 + (*buf - '0'); - buf++; + buf++; } return val; } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +