/************************************************************* * File: lib/strcat.c * Purpose: Part of C runtime library * Author: Phil Bunce (pjb@carmel.com) * Revision History: * 970304 Start of revision history */ #include "string.h" /** char *strcat(dst,src) concatinate src string to dst string */ char *strcat(dst,src) char *dst,*src; { char *d; if (!dst || !src) return(dst); d = dst; for (;*d;d++) ; for (;*src;src++) *d++ = *src; *d = 0; return(dst); }