13#if defined(TGR_PLATFORM) && TGR_PLATFORM == TGR_PLATFORM_SDL
20#define bcopy(src, dst, n) memmove((dst), (src), (size_t)(n))
22#define bcmp(a, b, n) memcmp((a), (b), (size_t)(n))
24#define bzero(p, n) memset((p), 0, (size_t)(n))
56void *
bcopy(
const void *src,
void *dst,
int n);
70int bcmp(
const void *a,
const void *b,
int n);
96void *
memcpy(
void *dst,
const void *src,
size_t n);
ldiv_t ldiv(long num, long denom)
Divide, truncating towards zero.
const char * strchr(const char *s, int c)
Find the first occurrence of a character in a string.
int bcmp(const void *a, const void *b, int n)
Compare n bytes of two buffers.
void bzero(void *p, int n)
Clear n bytes.
int sprintf(char *dst, const char *fmt,...)
Format into a buffer.
lldiv_t lldiv(long long num, long long denom)
Divide 64-bit values, truncating towards zero.
void * bcopy(const void *src, void *dst, int n)
Copy n bytes between buffers that may overlap.
size_t strlen(const char *s)
Return the length of a string.
void * memcpy(void *dst, const void *src, size_t n)
Copy n bytes between buffers that do not overlap.
The quotient and remainder of ldiv().
Definition os_libc.h:32
long rem
Definition os_libc.h:34
long quot
Definition os_libc.h:33
The quotient and remainder of lldiv().
Definition os_libc.h:38
long long rem
Definition os_libc.h:40
long long quot
Definition os_libc.h:39
Integer and floating-point types of libultra.