projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use LONGLONG rather than ULONGLONG on Windows to support good'old
[yaz-moved-to-github.git]
/
src
/
atoin.c
diff --git
a/src/atoin.c
b/src/atoin.c
index
6138300
..
fc40f19
100644
(file)
--- 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.
*
* See the file LICENSE for details.
*
- * $Id: atoin.c,v 1.4 2004-12-13 14:21:55 heikki Exp $
+ * $Id: atoin.c,v 1.8 2007-01-03 08:42:15 adam Exp $
*/
/**
*/
/**
@@
-16,7
+16,7
@@
#include <string.h>
#include <ctype.h>
#include <string.h>
#include <ctype.h>
-
+#include <yaz/marcdisp.h>
/**
* atoi_n: like atoi but reads at most len characters.
/**
* atoi_n: like atoi but reads at most len characters.
@@
-29,8
+29,16
@@
int atoi_n (const char *buf, int len)
{
if (isdigit (*(const unsigned char *) buf))
val = val*10 + (*buf - '0');
{
if (isdigit (*(const unsigned char *) buf))
val = val*10 + (*buf - '0');
- buf++;
+ buf++;
}
return val;
}
}
return val;
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+