DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

strcat(D3)


strcat -- concatenate strings

Synopsis

   #include <sys/types.h>
   #include <sys/ddi.h>
   

char *strcat(char *sptr1, const char *sptr2)

Description

The strcat function appends a copy of the string pointed to by sptr2 including the terminating null-character to the end of the string pointed to by sptr1. The initial character in the string pointed to by sptr2 replaces the null-character at the end of the string pointed to by sptr1.

The function strcat alters sptr1 without checking for overflow of the array pointed to by sptr1. If copying takes place between strings that overlap, the behavior is undefined.

Arguments

The arguments sptr1 and sptr2 each point to strings, and each string is an array of characters terminated by a null-character.

Return values

The function strcat returns the value of sptr1, which points to the null-terminated result.

Usage

Character movement is performed differently in different implementations; thus, overlapping moves may yield surprises.

Context and synchronization

All contexts.

Hardware applicability

All

Version applicability

ddi: 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp

References

bcmp(D3), bcopy(D3), strncat(D3)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005