/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) 1995-2013 Index Data
* See the file LICENSE for details.
*/
-/**
+/**
* \file atoin.c
* \brief Implements atoi_n function.
*/
{
int i;
for (i = 0; i < size; i++)
- if (!yaz_isdigit(*buf))
+ if (!yaz_isdigit(buf[i]))
return 0;
*val = atoi_n(buf, size);
return 1;