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
20c25923
Commit
20c25923
authored
Nov 16, 2010
by
Uwe Schulzweida
Browse files
printinfo.h update
parent
91486738
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/printinfo.h
View file @
20c25923
...
...
@@ -3,7 +3,6 @@
void
date2str
(
int
date
,
char
*
datestr
,
int
maxlen
)
{
static
const
char
*
func
=
"date2str"
;
int
year
,
month
,
day
;
int
len
;
...
...
@@ -12,13 +11,12 @@ void date2str(int date, char *datestr, int maxlen)
len
=
sprintf
(
datestr
,
DATE_FORMAT
,
year
,
month
,
day
);
if
(
len
>
(
maxlen
-
1
)
)
fprintf
(
stderr
,
"Internal problem (%s): sizeof input string is too small!
\n
"
,
func
);
fprintf
(
stderr
,
"Internal problem (%s): sizeof input string is too small!
\n
"
,
__
func
__
);
}
void
time2str
(
int
time
,
char
*
timestr
,
int
maxlen
)
{
static
const
char
*
func
=
"time2str"
;
int
hour
,
minute
,
second
;
int
len
;
...
...
@@ -27,7 +25,7 @@ void time2str(int time, char *timestr, int maxlen)
len
=
sprintf
(
timestr
,
TIME_FORMAT
,
hour
,
minute
,
second
);
if
(
len
>
(
maxlen
-
1
)
)
fprintf
(
stderr
,
"Internal problem (%s): sizeof input string is too small!
\n
"
,
func
);
fprintf
(
stderr
,
"Internal problem (%s): sizeof input string is too small!
\n
"
,
__
func
__
);
}
...
...
@@ -125,10 +123,9 @@ void printFiletype(int streamID, int vlistID)
printf
(
"
\n
"
);
}
static
void
printGridInfo
(
int
vlistID
)
static
void
printGridInfo
(
int
vlistID
)
{
static
const
char
*
func
=
"printGridInfo"
;
int
ngrids
,
index
;
int
gridID
,
gridtype
,
trunc
,
gridsize
,
xsize
,
ysize
;
int
nbyte0
;
...
...
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