I need to send bulks of K object to KDB via the C interface At the moment all my strings are sent as symbols which is not ideal.
I would like to replace all symbols by standard char arrays
For Symbols I did it this way
// table_def:([] name: `symbol$())
K m_data = ktn(0, 1); // 1 column
kK(m_data)[0] = ktn(KS, 100); // 100 rows in bulk
for (unsigned i = 0; i < 100; i++) {
kS(kK(m_data)[0])[i] = ss("abc");
}
But not sure how to create the Bulk structure for char arrays, This is what I tried.
// table_def:([] name: `char$())
K m_data = ktn(0, 1); // 1 column
kK(m_data)[0] = ktn(KC, 100); // 100 rows in bulk
for (unsigned i = 0; i < 100; i++) {
kS(kK(m_data)[0])[i] = ss("abc"); // this fail with a `type error
kC(kK(m_data)[0])[i] = kp("abc"); // this fail because kC expect a char not a char*
Any help would be appreciated