home *** CD-ROM | disk | FTP | other *** search
- /*
- * portability routines for the mipsABI
- */
-
- #ifdef _ABI_SOURCE
- #include <string.h>
-
- char *
- index(const char *s, int c)
- {
- return strchr (s, c);
- }
-
- char *
- rindex(const char *s, int c)
- {
- return strrchr (s, c);
- }
-
- void
- bcopy(const void *b1, void *b2, int length)
- {
- memcpy (b2, b1, length);
- }
-
- int
- bcmp(const void *b1, const void *b2, int length)
- {
- return memcmp (b1, b2, length);
- }
-
- void
- bzero(void *b, int length)
- {
- memset (b, 0, length);
- }
- #endif /* _ABI_SOURCE */
-