slre icon indicating copy to clipboard operation
slre copied to clipboard

slre_cap issue

Open stef-pellegrino opened this issue 10 years ago • 1 comments

In a small C program under Windows, I did this regexp: ... struct slre_cap caps[10];

const char *reg="(([a-z]+)/([a-z]+)@)?([a-z]+)(:(\d+))?"; const char *src = "server:4100";

slre_match(reg, src, strlen(src), caps, 10, 0); ...

Seems to work, but the caps structures are filled with incoherent data !?

stef-pellegrino avatar Nov 22 '14 16:11 stef-pellegrino

you have to use memset, see #11

sebgod avatar May 19 '15 03:05 sebgod