X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fatoin.c;h=fc40f1957532bcb13892a823f732a0a9b2706352;hp=e9b20e64be39078608bc7b28211c59ef5cf2c31f;hb=2979c8fc3b5c53c06facad850dcae09645b43044;hpb=5475567b7f05fbc245cedb1b3ecdbc63ac671685 diff --git a/src/atoin.c b/src/atoin.c index e9b20e6..fc40f19 100644 --- a/src/atoin.c +++ b/src/atoin.c @@ -1,8 +1,8 @@ /* - * Copyright (c) 1997-2004, Index Data + * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: atoin.c,v 1.5 2004-12-16 08:59:56 adam Exp $ + * $Id: atoin.c,v 1.8 2007-01-03 08:42:15 adam Exp $ */ /** @@ -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 + */ +