What is the difference between concatenate and catenate?
Are the words interchangeable?
concatenate: 1. To connect or link in a series or chain. 2. Computer Science To arrange (strings of characters) into a chained list.
catenate: To connect in a series of ties or links; form into a chain.
Background: Which is more natural in the case of a C function like strcat(dest, src):
char* ConcatenateString(char* dest, char* src);
or
char* CatenateString(char* dest, char* src);
strcatfunction when the C library provides a perfectly good one :-) – Sep 05 '13 at 12:03strcatis inherently semantically ambiguous in exactly the relevant way:strcat(string1, string2)means "I want to mutatestring1to catenate it withstring2", whilestrcat(buffer, string1); strcat(buffer, string2)means "I want to create a new string inbufferthat is the contents ofstring1andstring2catenated". – mtraceur Oct 26 '22 at 16:17