|
|
1.1 ! root 1: # include <sccs.h> ! 2: ! 3: SCCSID(@(#)IIbmove.c 7.1 2/5/81) ! 4: ! 5: /* ! 6: ** IIbmove -- run time byte mover ! 7: ** ! 8: ** IIbmove moves "l" bytes pointed to by "s", ! 9: ** to the area pointed to by "d". ! 10: ** ! 11: ** Returns a pointer to the ! 12: ** byte after the area filled. ! 13: ** ! 14: ** Doesn't append a null byte. ! 15: */ ! 16: ! 17: char * ! 18: IIbmove(s, d, l) ! 19: char *s, *d; ! 20: int l; ! 21: { ! 22: register char *ss, *dd; ! 23: register int len; ! 24: ! 25: ss = s; ! 26: dd = d; ! 27: len = l + 1; ! 28: ! 29: while (--len) ! 30: *dd++ = *ss++; ! 31: ! 32: return (dd); ! 33: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.