| 472 | */ |
| 473 | #ifndef RT_KLIBC_USING_USER_STRCMP |
| 474 | rt_int32_t rt_strcmp(const char *cs, const char *ct) |
| 475 | { |
| 476 | #ifdef RT_KLIBC_USING_LIBC_STRCMP |
| 477 | return strcmp(cs, ct); |
| 478 | #else |
| 479 | while (*cs && *cs == *ct) |
| 480 | { |
| 481 | cs++; |
| 482 | ct++; |
| 483 | } |
| 484 | |
| 485 | return (*cs - *ct); |
| 486 | #endif /* RT_KLIBC_USING_LIBC_STRCMP */ |
| 487 | } |
| 488 | #endif /* RT_KLIBC_USING_USER_STRCMP */ |
| 489 | RTM_EXPORT(rt_strcmp); |
| 490 |
no outgoing calls