440 |
|
|
441 |
void |
void |
442 |
safe_bcopy (from, to, size) |
safe_bcopy (from, to, size) |
443 |
char *from, *to; |
const char *from; |
444 |
|
char *to; |
445 |
int size; |
int size; |
446 |
{ |
{ |
447 |
if (size <= 0 || from == to) |
if (size <= 0 || from == to) |
456 |
/* Otherwise, we'll copy from the end. */ |
/* Otherwise, we'll copy from the end. */ |
457 |
else |
else |
458 |
{ |
{ |
459 |
register char *endf = from + size; |
register const char *endf = from + size; |
460 |
register char *endt = to + size; |
register char *endt = to + size; |
461 |
|
|
462 |
/* If TO - FROM is large, then we should break the copy into |
/* If TO - FROM is large, then we should break the copy into |