how to create a string literal as a function argument via string concatenation in c
- by Reed Debaets
I need to pass a string literal to a function
myfunction("arg1" CONSTANT "arg1");
now part of that constructed string literal needs to be a function return
stmp = createString();
myfunction("arg1" stmp "arg2");
is there any way to do this in one line?
myfunction("arg1" createString() "arg2"); //doesn't work ... why not? what instead?
NOTE: C only please.