#include <stdio.h>
void loc_log_chr_track_selection_info(const char *keypressed, const char *trk_name, const char *subdiv_name)
{
char loc_record[32 + 25 + 2] = {0};
if (trk_name == NULL)
{
trk_name = "";
}
snprintf(loc_record
, sizeof(loc_record
), "%s", trk_name
);
if (subdiv_name == NULL)
{
subdiv_name = "";
}
snprintf(loc_record
, sizeof(loc_record
), " %s", subdiv_name
); printf(" Fenil%sHello",loc_record
);
}
main()
{
loc_log_chr_track_selection_info(NULL,NULL,NULL);
loc_log_chr_track_selection_info("key press","trk name","subdiv name");
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGxvY19sb2dfY2hyX3RyYWNrX3NlbGVjdGlvbl9pbmZvKGNvbnN0IGNoYXIgKmtleXByZXNzZWQsIGNvbnN0IGNoYXIgKnRya19uYW1lLCBjb25zdCBjaGFyICpzdWJkaXZfbmFtZSkKewoKICAgY2hhciBsb2NfcmVjb3JkWzMyICsgMjUgKyAyXSA9IHswfTsKCiAKCiAKICAgaWYgKHRya19uYW1lID09IE5VTEwpCiAgIHsKICAgICAgCiAgICAgIHRya19uYW1lID0gIiI7CiAgICAgIAogICB9CiAgICBzbnByaW50Zihsb2NfcmVjb3JkLCBzaXplb2YobG9jX3JlY29yZCksICIlcyIsIHRya19uYW1lKTsKCiAgIGlmIChzdWJkaXZfbmFtZSA9PSBOVUxMKQogICB7CiAgICAKICAgICAgc3ViZGl2X25hbWUgPSAiIjsKICAgfQogICBzbnByaW50Zihsb2NfcmVjb3JkLCBzaXplb2YobG9jX3JlY29yZCksICIgJXMiLCBzdWJkaXZfbmFtZSk7CiAgIHByaW50ZigiIEZlbmlsJXNIZWxsbyIsbG9jX3JlY29yZCk7Cgp9Cm1haW4oKQp7CgkKCQpsb2NfbG9nX2Nocl90cmFja19zZWxlY3Rpb25faW5mbyhOVUxMLE5VTEwsTlVMTCk7CmxvY19sb2dfY2hyX3RyYWNrX3NlbGVjdGlvbl9pbmZvKCJrZXkgcHJlc3MiLCJ0cmsgbmFt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