4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-30 02:51:33 +08:00

Merge pull request #3777 from ErnestChen1/strcmp0727

[format] code style of rt_strcmp function
This commit is contained in:
Bernard Xiong 2020-07-29 09:12:28 +08:00 committed by GitHub
commit 18d1683092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}