mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-27 09:32:28 +08:00
[format] code style of rt_strcmp function
This commit is contained in:
@@ -456,7 +456,10 @@ RTM_EXPORT(rt_strncmp);
|
||||
rt_int32_t rt_strcmp(const char *cs, const char *ct)
|
||||
{
|
||||
while (*cs && *cs == *ct)
|
||||
cs++, ct++;
|
||||
{
|
||||
cs++;
|
||||
ct++;
|
||||
}
|
||||
|
||||
return (*cs - *ct);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user