/*
    (C) 1995-96 AROS - The Amiga Replacement OS
    $Id: strcat.c,v 1.1 1996/12/11 11:24:46 aros Exp $

    Desc: ANSI C function strcat()
    Lang: english
*/

/*****************************************************************************

    NAME */
#include <string.h>

	char * strcat (

/*  SYNOPSIS */
	char	   * dest,
	const char * src)

/*  FUNCTION
	Concatenates two strings.

    INPUTS
	dest - src is appended to this string. Make sure that there
		is enough room for src.
	src - This string is appended to dest

    RESULT
	dest.

    NOTES
	The routine makes no checks if dest is large enough.

    EXAMPLE
	char buffer[64];

	strcpy (buffer, "Hello ");
	strcat (buffer, "World.");

	// Buffer now contains "Hello World."

    BUGS

    SEE ALSO

    INTERNALS

    HISTORY

******************************************************************************/
{
    char * d = dest;

    while (*dest)
	dest ++;

    while ((*dest ++ = *src ++));

    return d;
} /* strcat */
