#include <stdio.h>
#include <string.h>
static char csv_tmp[100];
int main(void) {
char buff[3][4] = { "abc", "def", "ghi" };
for ( int i = 0; i<3; i++ )
{
sprintf((char *)&csv_tmp
[0], "%s, %s", csv_tmp
, buff
[i
]); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCnN0YXRpYyBjaGFyIGNzdl90bXBbMTAwXTsKCmludCBtYWluKHZvaWQpIHsKCWNoYXIgYnVmZlszXVs0XSA9IHsgImFiYyIsICJkZWYiLCAiZ2hpIiB9OwoJCglmb3IgKCBpbnQgaSA9IDA7IGk8MzsgaSsrICkKCXsKCQlzcHJpbnRmKChjaGFyICopJmNzdl90bXBbMF0sICIlcywgJXMiLCBjc3ZfdG1wLCBidWZmW2ldKTsKCQlwcmludGYoIiVzXG4iLCBjc3ZfdG1wKTsKCX0KCglyZXR1cm4gMDsKfQo=