filespecforceext

Force extension onto filespec. Input: filespec String that may or may not contain an extension ext Extension that doesn't contain a .

nothrow @safe @trusted
char*
filespecforceext
(
const(char)* filespec
,
const(char)* ext
)

Return Value

Type: char*

mem_malloc'ed string (NULL if error) NULL if filespec is NULL If ext is NULL, return mem_strdup(filespec)

Meta