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
27481ad2
Commit
27481ad2
authored
Oct 13, 2017
by
Fabian Wachsmann
Browse files
Added deci-, centi-, milli-, kilometer to valid height_units
parent
40005c73
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cdf_util.c
View file @
27481ad2
...
...
@@ -100,7 +100,11 @@ bool is_height_units(const char *units)
bool
status
=
(
u0
==
'm'
&&
(
!
units
[
1
]
||
strncmp
(
units
,
"meter"
,
5
)
==
0
))
||
(
!
units
[
2
]
&&
units
[
1
]
==
'm'
&&
(
u0
==
'c'
||
u0
==
'd'
||
u0
==
'k'
));
||
(
!
units
[
2
]
&&
units
[
1
]
==
'm'
&&
(
u0
==
'c'
||
u0
==
'd'
||
u0
==
'k'
))
||
(
strncmp
(
units
,
"decimeter"
,
9
)
==
0
)
||
(
strncmp
(
units
,
"centimeter"
,
10
)
==
0
)
||
(
strncmp
(
units
,
"millimeter"
,
10
)
==
0
)
||
(
strncmp
(
units
,
"kilometer"
,
9
)
==
0
);
return
status
;
}
...
...
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