X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fatoin.c;h=0239f822562c62b7783902e085a269cb7a3e83d2;hp=47f5cd84dc9159bfdb2a29affe771278594aa94e;hb=fb6d99a0c7e07d9cc4a315c447deaf6564a85505;hpb=05c274ef315384faafcc5900c17468f0ea2474e6 diff --git a/src/atoin.c b/src/atoin.c index 47f5cd8..0239f82 100644 --- a/src/atoin.c +++ b/src/atoin.c @@ -1,8 +1,8 @@ /* - * Copyright (c) 1997-2004, Index Data + * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: atoin.c,v 1.3 2004-10-15 00:18:59 adam Exp $ + * $Id: atoin.c,v 1.7 2005-06-25 15:46:03 adam Exp $ */ /** @@ -16,7 +16,7 @@ #include #include -#include +#include /** * atoi_n: like atoi but reads at most len characters. @@ -29,8 +29,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 + */ +