X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fatoin.c;h=908188ee59651d33667a23c9930e5bc9207b8cee;hb=60a702f390f7e2addfdab79f2328db3ba2897c8b;hp=cb3a89922eb9efe987db5c11eb7ada47ea1dd9a8;hpb=c9408db23d24baece38e05035864f933ea5ea071;p=yaz-moved-to-github.git diff --git a/src/atoin.c b/src/atoin.c index cb3a899..908188e 100644 --- a/src/atoin.c +++ b/src/atoin.c @@ -1,8 +1,13 @@ /* - * Copyright (c) 1997-2004, Index Data + * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: atoin.c,v 1.2 2004-08-13 11:35:37 adam Exp $ + * $Id: atoin.c,v 1.6 2005-01-15 19:47:10 adam Exp $ + */ + +/** + * \file atoin.c + * \brief Implements atoi_n function. */ #if HAVE_CONFIG_H @@ -11,8 +16,11 @@ #include #include -#include +#include +/** + * atoi_n: like atoi but reads at most len characters. + */ int atoi_n (const char *buf, int len) { int val = 0;