Parameters
- destination
- Pointer to the destination array, which should contain a C string, and be large enough to contain the concatenated resulting string, including the additional null-character.
- source
- C string to be appended.
- num
- Maximum number of characters to be appended.
Return Value
destination is returned.Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
Output:
To be or not |
See also
| strcat | Concatenate strings (function) |
| strncpy | Copy characters from string (function) |
| memcpy | Copy block of memory (function) |
