Browse Source

make bcopy use memmove

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
f397fc443c
1 changed files with 1 additions and 6 deletions
  1. 1
    6
      src/core/string.c

+ 1
- 6
src/core/string.c View File

424
  */
424
  */
425
 char * bcopy(const char * src, char * dest, int count)
425
 char * bcopy(const char * src, char * dest, int count)
426
 {
426
 {
427
-	char *tmp = dest;
428
-
429
-	while (count--)
430
-		*tmp++ = *src++;
431
-
432
-	return dest;
427
+	return memmove(dest,src,count);
433
 }
428
 }
434
 #endif
429
 #endif
435
 
430
 

Loading…
Cancel
Save