Programming

Input validation in C

Posted on May 6, 2009. Filed under: Programming, Software | Tags: , , |

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 [...]

Read Full Post | Make a Comment ( 1 so far )

  • Feed

  • Ohloh

  • Bookmarks

  • Categories

  • Visitors


  • Hits

    • 23,372 hits

Liked it here?
Why not try sites on the blogroll...