/* SPDX-License-Identifier: MIT */ /* Derived from musl libc (Copyright © 2005-2020 Rich Felker, et al.) */ #include int strcmp(const char *l, const char *r) { for (; *l==*r && *l; l++, r++); return *(unsigned char *)l - *(unsigned char *)r; }