Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
c7e3aad9
Commit
c7e3aad9
authored
Nov 22, 2014
by
Uwe Schulzweida
Browse files
renamed getFiletype() to cdiGetFiletype()
parent
3f5ed5b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cdi.h
View file @
c7e3aad9
...
...
@@ -264,6 +264,8 @@ int cdiEncodeTime(int hour, int minute, int second);
/* STREAM control routines */
int
cdiGetFiletype
(
const
char
*
path
,
int
*
byteorder
);
/* streamOpenRead: Open a dataset for reading */
int
streamOpenRead
(
const
char
*
path
);
...
...
src/stream.c
View file @
c7e3aad9
...
...
@@ -81,8 +81,8 @@ int getByteorder(int byteswap)
return
(
byteorder
);
}
static
int
g
etFiletype
(
const
char
*
filename
,
int
*
byteorder
)
// used also in CDO
int
cdiG
etFiletype
(
const
char
*
filename
,
int
*
byteorder
)
{
int
filetype
=
CDI_EUFTYPE
;
int
swap
=
0
;
...
...
@@ -733,7 +733,7 @@ int streamOpenRead(const char *filename)
cdiInitialize
();
int
byteorder
=
0
;
int
filetype
=
g
etFiletype
(
filename
,
&
byteorder
);
int
filetype
=
cdiG
etFiletype
(
filename
,
&
byteorder
);
if
(
filetype
<
0
)
return
(
filetype
);
...
...
@@ -754,7 +754,7 @@ int streamOpenAppend(const char *filename)
cdiInitialize
();
int
byteorder
=
0
;
int
filetype
=
g
etFiletype
(
filename
,
&
byteorder
);
int
filetype
=
cdiG
etFiletype
(
filename
,
&
byteorder
);
if
(
filetype
<
0
)
return
(
filetype
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment