1 extern void abort (void);
2 extern int inside_main
;
3 typedef __SIZE_TYPE__
size_t;
5 #define TEST_ABORT if (inside_main) abort()
8 my_memcpy (void *d
, const void *s
, size_t n
)
10 char *dst
= (char *) d
;
11 const char *src
= (const char *) s
;
18 my_bcopy (const void *s
, void *d
, size_t n
)
20 char *dst
= (char *) d
;
21 const char *src
= (const char *) s
;
35 my_memset (void *d
, int c
, size_t n
)
37 char *dst
= (char *) d
;
44 my_bzero (void *d
, size_t n
)
46 char *dst
= (char *) d
;
52 memcpy (void *d
, const void *s
, size_t n
)
54 void *result
= my_memcpy (d
, s
, n
);
60 bcopy (const void *s
, void *d
, size_t n
)
67 memset (void *d
, int c
, size_t n
)
69 void *result
= my_memset (d
, c
, n
);
75 bzero (void *d
, size_t n
)
82 /* The RTP C library uses bfill, which is defined in the same file as
84 #include "lib/bfill.c"