email_t theEmail = parseEmail(untrustedInput); if (theEmail.error != PARSE_OK) { return error; }
You made an email-or-error type and named it email_t and then manually checked it.
PDV returns an non-error-email type from the check method.
But I can spot when code is doing exactly what the cited article says not to do,
This line is the "validate" in the expression "parse, don't validate":
if (theEmail.error != PARSE_OK)
You'd be better off reading the original: https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-va...