"Portable" strcatx

utzoo!decvax!harpo!seismo!dmy utzoo!decvax!harpo!seismo!dmy
Fri Jan 14 12:15:57 AEST 1983


#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);
}



More information about the Comp.lang.c mailing list