attr_out(f, b->attr, "bairro", 40);
attr_out(f, b->attr, "cep", 9);
attr_out(f, b->attr, "uf", 2);
- attr_out(f, b->attr, "cd_municipio", 4);
+ attr_out_int(f, b->attr, "cd_municipio", 4);
attr_out(f, b->attr, "municipio", 40);
/* FIXME: Registro de imóveis, Nao (0), Sim (1), Vazio (2) */
fprintf(f, "%d", attr_get(b->attr, "registro") ? 1 : 2);
attr_out(f, b->attr, "matricula", 40);
attr_out(f, b->attr, "registro", 40);
- attr_out(f, b->attr, "area", 11);
+ attr_out_int(f, b->attr, "area", 11);
/* FIXME: Area, M2 (0), Ha (1), Vazio (2) */
fprintf(f, "%d", attr_get(b->attr, "area") ? 0 : 2);
attr_out(f, b->attr, "cartorio", 60);
attr_out(f, b->attr, "iptu", 30);
}
if (dec->ano >= 2020) {
- attr_out(f, b->attr, "banco", 3);
+ attr_out_int(f, b->attr, "banco", 3);
fprintf(f, "%c", b->dependente ? 'D' : 'T');
if (b->dependente) {
struct dependente *d;