}
LOC_EXPORT int loc_network_set_country_code(struct loc_network* network, const char* country_code) {
+ // Set empty country code
+ if (!country_code || !*country_code) {
+ *network->country_code = '\0';
+ return 0;
+ }
+
// Country codes must be two characters
if (strlen(country_code) != 2)
return -EINVAL;