lq-text: LQU_joinstr2

API char * LQU_joinstr2 (s1, s2) CONST char *s1, *s2;

Purpose

Returns a string consisting of the concatenation of the two given strings. The result is freshly malloc'd, and it is the caller's responsibility to free this storage. Null strings are treated as if they were empty strings.

Returns

The concatenation of the three given arguments.

Errors

Fatal error if memory is exhausted.

Bugs

The name is a little odd.

See Also:

Example

char *theFile = LQU_joinstr2(directoryName, "/fileName");