Associative arrays in C
问题 I am implementing a way to transfer a set of data to a programmable dongle. The dongle is based on a smart card technology and can execute an arbitrary code inside. The input and output data is passed as a binary blocks that can be accessed via input and output pointers. I would like to use an associative array to simplify the data processing code. Everything should work this way: First the host application: // Host application in C++ in_data["method"] = "calc_r"; in_data["id"] = 12; in_data[