Skip to content

Instantly share code, notes, and snippets.

// String I want to match: "SWI9600M_01\\.00\\.09\\.03AP R2492 CARMD-EN-10526 2011/07/01 19:31:09\n"
int validate_string_with_regex(const char *string, const char *regex_str) {
regex_t regex;
/* Compile regular expression */
int reti = regcomp(&regex, regex_str, REG_EXTENDED);
if (reti != 0) {
fprintf(stderr, "Could not compile regex\n");
return reti;
Embedded / Electronics night featuring a functionality and design demo of the μJoypad, the world's (unofficially) smallest NES controller |+ ..|
Monday, November 5th, 2012
7:00 pm
SkullSpace Lounge, 3rd floor, 125 Adelaide St.
After the success of our last embedded / electronics night, I thought we should have another! I'm proposing we get together on November 5th at 7:00
and I will start things off with a short, informal demo of my latest project, the μJoypad, a nickel sized NES controller[1][2]. I designed the board
using the free and open source tools available as part of the gEDA project and will be showing how I used those tools to quickly put together the
schematic and PCB layout.