Skip to content

Instantly share code, notes, and snippets.

1
2
3
1
2
3
another file
github tour
gist
---
egitd
error messages
more flexible interpolation
logging
@mojombo
mojombo / regex_example.c
Created October 29, 2008 00:29
An example of using regex in C
#include <stdlib.h>
#include <string.h>
#include <regex.h>
#include <stdio.h>
int main() {
regex_t *preg = calloc(1, sizeof(regex_t));
int numoffsets = 5;
regmatch_t pmatch[numoffsets];
Gist should be way faster now.
speed test.
# +path+ is the full path of the new repo (traditionally ends with /.git)# +path+ is the full path of the new repo (traditionally ends with /.git)# +path+ is the full path of the new repo (traditionally ends with /.git)# +path+ is the full path of the new repo (traditionally ends with /.git)
/*
=skin=
@name Default
@author Yatrik Solanki
@homepage http://www.yatriksolanki.com
@email yatriksolanki@gmail.com
@license MPL/LGPL/GPL
=/skin=
*/
/*
=skin=
@name Default
@author Yatrik Solanki
@homepage http://www.yatriksolanki.com
@email yatriksolanki@gmail.com
@license MPL/LGPL/GPL
=/skin=
*/