I have an sprintf as follows -
sprintf (output,"%.*s%s%s%s",length,Str1,Str2,Str3,Str4);
All the strings contain valid data and the length parameter as well is correct. Yet, output remains emtpty after this sprintf.
If I replace %.*s with %s and remove the length parameter, it works perfectly fine.
Try This
Change
To