Understanding the toml_datum_t structure
masterFunctions like toml_*_at and toml_*_in return a toml_datum_t structure. This structure contains an ok flag to indicate if the lookup was successful.
If ok is true, you can access the value via the u union (e.g., u.s for strings, u.i for integers).
CRITICAL MEMORY MANAGEMENT: If the accessed value is a string (u.s) or a timestamp (u.ts), you must call free() on that specific field after use to avoid memory leaks.
toml_datum_t host = toml_string_in(tab, "host");
if (host.ok) {
printf("host: %s\n", host.u.s);
free(host.u.s); // Required for string types
}