未验证 提交 18d16830 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #3777 from ErnestChen1/strcmp0727

[format] code style of rt_strcmp function
...@@ -456,7 +456,10 @@ RTM_EXPORT(rt_strncmp); ...@@ -456,7 +456,10 @@ RTM_EXPORT(rt_strncmp);
rt_int32_t rt_strcmp(const char *cs, const char *ct) rt_int32_t rt_strcmp(const char *cs, const char *ct)
{ {
while (*cs && *cs == *ct) while (*cs && *cs == *ct)
cs++, ct++; {
cs++;
ct++;
}
return (*cs - *ct); return (*cs - *ct);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册