source: trunk/sys/dietlibc/strcat.c @ 315

Last change on this file since 315 was 1, checked in by alain, 8 years ago

First import

File size: 360 bytes
Line 
1#include "dietfeatures.h"
2#include <string.h>
3
4char* strcat(register char* s,register const char* t)
5{
6  char *dest=s;
7  s+=strlen(s);
8  for (;;) {
9    if (!(*s = *t)) break; ++s; ++t;
10#ifndef WANT_SMALL_STRING_ROUTINES
11    if (!(*s = *t)) break; ++s; ++t;
12    if (!(*s = *t)) break; ++s; ++t;
13    if (!(*s = *t)) break; ++s; ++t;
14#endif
15  }
16  return dest;
17}
18
Note: See TracBrowser for help on using the repository browser.