lq-text: LQU_joinstr3

API char * LQU_joinstr3 (s1, s2, s3) CONST char *s1, *s2, *s3;

Purpose

Returns a string consisting of the concatenation of the three 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.

Example

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