mirror of
https://github.com/xcat2/xNBA.git
synced 2025-08-25 04:30:30 +00:00
make bcopy use memmove
This commit is contained in:
@@ -424,12 +424,7 @@ void * memset(void * s,int c,size_t count)
|
||||
*/
|
||||
char * bcopy(const char * src, char * dest, int count)
|
||||
{
|
||||
char *tmp = dest;
|
||||
|
||||
while (count--)
|
||||
*tmp++ = *src++;
|
||||
|
||||
return dest;
|
||||
return memmove(dest,src,count);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user