Validating c input

Luckily, I was able to parse through the extra characters one-by-one and get something working. is an undefined behavior, which is better not to involve it in my code in order to prevent any error plus it no longer works in VS2015 due to some reasons.

Scan the email address supplied by the user, and validate it against the lexical rules set forth in RFC 822. Unfortunately, the syntax is complex, and it supports several address formats that are no longer relevant.

) Nor do you provide any clue to failure mode other than "none of these worked". Unfortunately, this can't be simply achieved by , then slap your teacher/professor for making the assignment harder than it really needs to be).

If you need to be able to handle octal or hex formats, then it gets a little more complicated.

Input validation should be applied on both syntactical and semantic level.

Syntactic validation should enforce correct syntax of structured fields (e.g.

Leave a Reply