| * Misc. functions for systems that don't have them |
| * Copyright 1996 Alexandre Julliard |
| unsigned int usleep (unsigned int useconds) { DosSleep(useconds); } |
| unsigned int usleep (unsigned int useconds) |
| delay.tv_usec = useconds; |
| select( 0, 0, 0, 0, &delay ); |
| void *memmove( void *dest, const void *src, unsigned int len ) |
| register char *dst = dest; |
| /* Use memcpy if not overlapping */ |
| if ((dst + len <= (char *)src) || ((char *)src + len <= dst)) |
| /* Otherwise do it the hard way (FIXME: could do better than this) */ |
| while (len--) *dst++ = *((char *)src)++; |
| src = (char *)src + len - 1; |
| while (len--) *dst-- = *((char *)src)--; |
| #endif /* HAVE_MEMMOVE */ |