int err;
// Check some valid country codes
- if (!loc_country_code_is_valid("XX")) {
- fprintf(stderr, "Valid country code detected as invalid: %s\n", "XX");
+ if (!loc_country_code_is_valid("DE")) {
+ fprintf(stderr, "Valid country code detected as invalid: %s\n", "DE");
exit(EXIT_FAILURE);
}
exit(EXIT_FAILURE);
// Create a country
- err = loc_writer_add_country(writer, &country, "XX");
+ err = loc_writer_add_country(writer, &country, "DE");
if (err) {
fprintf(stderr, "Could not create country\n");
exit(EXIT_FAILURE);
exit(EXIT_FAILURE);
}
- err = loc_network_set_country_code(network1, "XX");
+ err = loc_network_set_country_code(network1, "DE");
if (err) {
fprintf(stderr, "Could not set country code\n");
exit(EXIT_FAILURE);
exit(EXIT_FAILURE);
}
- err = loc_network_set_country_code(network2, "XY");
+ err = loc_network_set_country_code(network2, "DE");
if (err) {
fprintf(stderr, "Could not set country code\n");
exit(EXIT_FAILURE);