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
42c0e7df
Commit
42c0e7df
authored
Jun 08, 2012
by
Uwe Schulzweida
Browse files
cdi -s: changed MAXCHARS from 80 to 82
parent
f01d9986
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/cdi.c
View file @
42c0e7df
...
...
@@ -256,6 +256,7 @@ void printInfo(int gridtype, int vdate, int vtime, char *varname, double level,
fprintf
(
stdout
,
"Found %d of %d missing values!
\n
"
,
imiss
,
nmiss
);
}
#define MAXCHARS 82
static
void
printShortinfo
(
int
streamID
,
int
vlistID
,
int
vardis
)
...
...
@@ -389,7 +390,7 @@ void printShortinfo(int streamID, int vlistID, int vardis)
nbyte
=
nbyte0
;
for
(
levelID
=
0
;
levelID
<
levelsize
;
levelID
++
)
{
if
(
nbyte
>
80
)
if
(
nbyte
>
MAXCHARS
)
{
fprintf
(
stdout
,
"
\n
"
);
fprintf
(
stdout
,
"%*s"
,
nbyte0
,
""
);
...
...
@@ -406,7 +407,7 @@ void printShortinfo(int streamID, int vlistID, int vardis)
nbyte0
=
fprintf
(
stdout
,
"%33s : "
,
"bounds"
);
for
(
levelID
=
0
;
levelID
<
levelsize
;
levelID
++
)
{
if
(
nbyte
>
80
)
if
(
nbyte
>
MAXCHARS
)
{
fprintf
(
stdout
,
"
\n
"
);
fprintf
(
stdout
,
"%*s"
,
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