btscpy.c 352 B

123456789101112131415161718192021
  1. /* $Id$ */
  2. /*
  3. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  4. * See the copyright notice in the ACK home directory, in the file "Copyright".
  5. */
  6. /* btscpy()
  7. */
  8. #include "ack_string.h"
  9. char *
  10. btscpy(b1, b2, n)
  11. register char *b1, *b2;
  12. register int n;
  13. {
  14. char *b1s = b1;
  15. while (n-- > 0)
  16. *b1++ = *b2++;
  17. return b1s;
  18. }