X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fatoin.c;h=e7718c5797de6e45cae412325a4f5337317078ec;hb=3c03c66fdcf640bbf4c611a48bf8c74989d077f6;hp=6138300884e3544cbcd59bc179b44ba31af3e51a;hpb=f4c095a042b1bcccb78136be87944e46412386aa;p=yaz-moved-to-github.git diff --git a/src/atoin.c b/src/atoin.c index 6138300..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.4 2004-12-13 14:21:55 heikki Exp $ */ /** @@ -16,7 +14,7 @@ #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 + */ +