Programming
Input validation in C
Just today I found a stable and powerful way to validate inputs in C, using regular expressions. Gnulib provides a header called regex.h and doing man regex.h will help you find more. Here’s how you use it.
First, the regular expression should be ‘compiled’ – not in the usual sense, but it’s converted to a format [...]



