16 lines
330 B
C
16 lines
330 B
C
#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;
|
|
}
|
|
}
|