summaryrefslogtreecommitdiff
path: root/str_cpy.c
blob: 453d79075055167d307b2d1b478fd5fe2529a5aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "str.h"

unsigned int str_copy(s,t)
register char *s;
register char *t;
{
  register int len;

  len = 0;
  for (;;) {
    if (!(*s = *t)) return len; ++s; ++t; ++len;
    if (!(*s = *t)) return len; ++s; ++t; ++len;
    if (!(*s = *t)) return len; ++s; ++t; ++len;
    if (!(*s = *t)) return len; ++s; ++t; ++len;
  }
}