strcpy.c 350 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. /* Copy t into s
  7. */
  8. #include "ack_string.h"
  9. char *
  10. strcpy(s, t)
  11. register char *s;
  12. register _CONST char *t;
  13. {
  14. register char *b = s;
  15. while (*s++ = *t++)
  16. ;
  17. return b;
  18. }