home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
program
/
316
/
libsrc
/
strncat.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
Text File
|
1988-10-20
|
202 b
|
17 lines
char * strncat(s1, s2, n)
char *s1;
char *s2;
int n;
{
char * saves1 = s1;
while (*s1++)
;
s1--;
while ((--n >= 0) && (*s2))
*s1++ = *s2++;
*s1 = '\0';
return(saves1);
}