All pastes #763364 Raw Edit

Miscellany

public c v1 · immutable
·published 2007-11-06 12:03 UTC
rendered paste body
#define INVALID_CPF(cpf) \	switch (cpf) { \		case strlen(cpf) != 11: \			RETURN_FALSE; \			break; \		case strcmp(cpf, "00000000000") == 0: \		     strcmp(cpf, "11111111111") == 0: \		     strcmp(cpf, "22222222222") == 0: \		     strcmp(cpf, "33333333333") == 0: \		     strcmp(cpf, "44444444444") == 0: \		     strcmp(cpf, "55555555555") == 0: \		     strcmp(cpf, "66666666666") == 0: \		     strcmp(cpf, "77777777777") == 0: \		     strcmp(cpf, "88888888888") == 0: \		     strcmp(cpf, "99999999999") == 0: \			RETURN_FALSE; \			break; \		default: \			RETURN_TRUE; \	} \