2 * Copyright (c) 1997-2004, Index Data
3 * See the file LICENSE for details.
5 * $Id: atoin.c,v 1.2 2004-08-13 11:35:37 adam Exp $
14 #include <yaz/yaz-util.h>
16 int atoi_n (const char *buf, int len)
22 if (isdigit (*(const unsigned char *) buf))
23 val = val*10 + (*buf - '0');