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
Version 5.9.0
[yaz-moved-to-github.git]
/
src
/
oid_util.c
diff --git
a/src/oid_util.c
b/src/oid_util.c
index
0975d3a
..
ed60edc
100644
(file)
--- a/
src/oid_util.c
+++ b/
src/oid_util.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2008 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-14,8
+14,8
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#include <ctype.h>
+#include <yaz/yaz-iconv.h>
#include <yaz/snprintf.h>
#include <yaz/oid_util.h>
#include <yaz/snprintf.h>
#include <yaz/oid_util.h>
@@
-62,7
+62,7
@@
char *oid_oid_to_dotstring(const Odr_oid *oid, char *oidbuf)
int i;
oidbuf[0] = '\0';
int i;
oidbuf[0] = '\0';
- for (i = 0; oid[i] != -1 && i < OID_SIZE; i++)
+ for (i = 0; oid[i] != -1 && i < OID_SIZE; i++)
{
yaz_snprintf(tmpbuf, sizeof(tmpbuf)-1, "%d", oid[i]);
if (i > 0)
{
yaz_snprintf(tmpbuf, sizeof(tmpbuf)-1, "%d", oid[i]);
if (i > 0)
@@
-76,7
+76,7
@@
int oid_dotstring_to_oid(const char *name, Odr_oid *oid)
{
int i = 0;
int val = 0;
{
int i = 0;
int val = 0;
- while (isdigit (*(unsigned char *) name))
+ while (yaz_isdigit (*name))
{
val = val*10 + (*name - '0');
name++;
{
val = val*10 + (*name - '0');
name++;
@@
-98,6
+98,7
@@
int oid_dotstring_to_oid(const char *name, Odr_oid *oid)
/*
* Local variables:
* c-basic-offset: 4
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab