ALL,
I have couple of strings with the different length (field names in the database). I counted the length of the longest one and put it in the maxLength variable.
Now, I want to do this:
for( auto field: fields )
{
swprintf( fieldToPrint, "%maxLength", field->name );
}
Unfortunately the program crashes.
What is best way to handle such case?
TIA!!