Skip to content
GitLab
Menu
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
dc3a8855
Commit
dc3a8855
authored
Aug 14, 2014
by
Thomas Jahns
🤸
Browse files
Replace strtolower with single-pass version.
parent
22c49c96
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf.c
View file @
dc3a8855
...
...
@@ -128,14 +128,9 @@ ncvar_t;
static
void
strtolower
(
char
*
str
)
{
int
i
,
len
;
if
(
str
)
{
len
=
(
int
)
strlen
(
str
);
for
(
i
=
0
;
i
<
len
;
i
++
)
str
[
i
]
=
tolower
((
int
)
str
[
i
]);
}
for
(
size_t
i
=
0
;
str
[
i
];
++
i
)
str
[
i
]
=
tolower
((
int
)
str
[
i
]);
}
static
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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