home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
s
/
snip1292.zip
/
XSTRCAT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-19
|
440b
|
26 lines
/*
** string concatenation function
*/
#include <stdarg.h>
char *xstrcat(char *des, char *src, ...)
{
char *destination = des;
va_list v;
va_start(v, src);
while (src != 0)
{
while (*src != 0)
*des++ = *src++;
src = va_arg(v, char *);
}
*des = 0;
va_end(v);
return destination;
}