home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 9
/
FreshFishVol9-CD2.bin
/
bbs
/
gnu
/
libnix-0.8-src.lha
/
libnix-0.8
/
sources
/
nix
/
string
/
strcat.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-12-12
|
324 b
|
36 lines
#ifndef mc68000
#include <string.h>
char *strcat(char *s1,const char *s2)
{
char *s=s1;
while(*s++)
;
--s;
while((*s++=*s2++))
;
return s1;
}
#else
asm("
.globl _strcat
_strcat:
movml sp@(4:W),d0/a0
movel d0,a1
L2: tstb a1@+
jne L2
subqw #1,a1
L1: moveb a0@+,a1@+
jne L1
rts
");
#endif