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
Fix bug introduced in srw.c revision 1.37
[yaz-moved-to-github.git]
/
src
/
tpath.c
diff --git
a/src/tpath.c
b/src/tpath.c
index
58ac639
..
38d66ef
100644
(file)
--- a/
src/tpath.c
+++ b/
src/tpath.c
@@
-1,10
+1,14
@@
/*
/*
- * Copyright (c) 1995-2003, Index Data.
+ * Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
* See the file LICENSE for details.
- * Sebastian Hammer, Adam Dickmeiss
*
*
- * $Id: tpath.c,v 1.1 2003-10-27 12:21:35 adam Exp $
+ * $Id: tpath.c,v 1.6 2005-06-25 15:46:06 adam Exp $
*/
*/
+/**
+ * \file tpath.c
+ * \brief Implements path fopen
+ */
+
#if HAVE_CONFIG_H
#include <config.h>
#endif
#if HAVE_CONFIG_H
#include <config.h>
#endif
@@
-33,7
+37,7
@@
FILE *yaz_fopen(const char *path, const char *name, const char *mode,
for(;;)
{
for(;;)
{
- FILE *f;
+ FILE *f;
const char *path_sep = 0;
size_t len = 0;
const char *path_sep = 0;
size_t len = 0;
@@
-67,8
+71,8
@@
FILE *yaz_fopen(const char *path, const char *name, const char *mode,
spath[slen++] = '/';
}
strcpy (spath+slen, name);
spath[slen++] = '/';
}
strcpy (spath+slen, name);
- if ((f = fopen(spath, mode)))
- return f;
+ if ((f = fopen(spath, mode)))
+ return f;
if (!path_sep)
break;
if (!path_sep)
break;
@@
-89,3
+93,11
@@
int yaz_is_abspath (const char *p)
#endif
return 0;
}
#endif
return 0;
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+