| changeset 0 | c045670f36e9 |
| -1:000000000000 | 0:c045670f36e9 |
|---|---|
1 #include "str.h" |
|
2 |
|
3 unsigned int str_copy(s,t) |
|
4 register char *s; |
|
5 register char *t; |
|
6 { |
|
7 register int len; |
|
8 |
|
9 len = 0; |
|
10 for (;;) { |
|
11 if (!(*s = *t)) return len; ++s; ++t; ++len; |
|
12 if (!(*s = *t)) return len; ++s; ++t; ++len; |
|
13 if (!(*s = *t)) return len; ++s; ++t; ++len; |
|
14 if (!(*s = *t)) return len; ++s; ++t; ++len; |
|
15 } |
|
16 } |