Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
strcat, strncat
◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The strcat and strncat functions operate on null-terminated
strings. The string arguments to these functions are expected to
contain a null character (\0) marking the end of the string. No
overflow checking is performed when strings are copied or
appended.
The strcat function appends <string2> to <string1>, terminates the
resulting string with a null character, and returns a pointer to
the concatenated string (<string1>).
The strncat function appends, at most, the first <count>
characters of <string2> to <string1>, terminates the resulting
string with a null character (\0), and returns a pointer to the
concatenated string (<string1>). If <count> is greater than the
length of <string2>, the length of <string2> is used in place of
<count>.
The _f... forms of these functions are model-independent (large-
model) forms that use far pointer forms of the string arguments
and return values. These model-independent functions can be called
from any point in the program.
Return Value
The return values for these functions are described above.
-♦-