| author | tomas@localhost |
| Thu, 01 Nov 2007 14:46:11 +0100 | |
| changeset 0 | c045670f36e9 |
| permissions | -rw-r--r-- |
| 0 | 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 |
} |