[net.misc] "Portable" strcatx

dmy (01/14/83)

#ifdef intro
Here is the "portable" version, which depends on <varargs.h>.
As I did not write it nor test it, I make no claims about it,
but it seems simple enough.  If you want and don't have <varargs.h>,
put out a request on the net -- I'm not sure if it's protected by
license, so I won't send it.
#endif

#include <varargs.h>
/* VARARGS1 */
char *strcatx(dest, va_alist)
char *dest;
va_dcl
{
    va_list argptr;
    char *src;
    
    va_start(argptr);
    while ((src = va_arg(argptr, char *)) != NULL)
	strcat (dest, src);
    va_end(argptr);
}