summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/strcpy.c
blob: 49693c30d70e896863cb31b2cc4268cde36ebfa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "dietfeatures.h"

char* strcpy(register char* s,register const char* t)
{
  char *dest=s;
  for (;;) {
    if (!(*s = *t)) return dest; ++s; ++t;
#ifndef WANT_SMALL_STRING_ROUTINES
    if (!(*s = *t)) return dest; ++s; ++t;
    if (!(*s = *t)) return dest; ++s; ++t;
    if (!(*s = *t)) return dest; ++s; ++t;
#endif
  }
}