Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slre_cap issue #18

Open
stef-pellegrino opened this issue Nov 22, 2014 · 1 comment
Open

slre_cap issue #18

stef-pellegrino opened this issue Nov 22, 2014 · 1 comment

Comments

@stef-pellegrino
Copy link

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 !?

@sebgod
Copy link

sebgod commented May 19, 2015

you have to use memset, see #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants