/* * solid_compat.c — Solid-C compatibility helpers that need real code * (rather than just header macros). */ #include #include char *strlwr(char *s) { char *p = s; while (*p) { if (*p >= 'A' && *p <= 'Z') *p += 'a' - 'A'; p++; } return s; } char *strupr(char *s) { char *p = s; while (*p) { if (*p >= 'a' && *p <= 'z') *p -= 'a' - 'A'; p++; } return s; } /* div() comes from SDCC's z80.lib. */