};
LOC_EXPORT int loc_country_new(struct loc_ctx* ctx, struct loc_country** country, const char* country_code) {
+ if (!loc_country_code_is_valid(country_code))
+ return -EINVAL;
+
struct loc_country* c = calloc(1, sizeof(*c));
if (!c)
return -ENOMEM;