fprintf(f, "%-11.11s", ""); /* CPF inventariante */
fprintf(f, "%-40.40s", dec->contribuinte.municipio);
fprintf(f, "%-60.60s", dec->nome);
- fprintf(f, "%-11.11s", ""); /* CPF empregada */
+ if (dec->ano == 2017)
+ fprintf(f, "%010u ", crc32(0, dec->cpf, 11)); /* hash CPF */
+ else
+ fprintf(f, "%-11.11s", ""); /* CPF empregada, FILLER */
fprintf(f, "%-12.12s", sistema_get_mac(dec));
fprintf(f, "%08d", 0); /* Data saída */
fprintf(f, "%-11.11s", ""); /* CPF procurador */