[%.*s]is a format string printfmeaning:
- The first argument must be an integer (indicating the maximum length of the string to print).
- the second argument must be the string itself.
[and ](and finite space) are transmitted as is.
Usually you see something like .7s, which means a 7-character string. Using *for length means taking it from the argument given.
, , , lengths[i], row[i] ( row[i] NULL, "NULL").