By using this site, you agree to our Privacy Policy and our Terms of Use. Close

Hey guys, this has been frustruating me for several hours and its bound to have a simple solution so I figured you guys would know the answer.

What is wrong with this statement little bit of code?


#include <regex.h>

int main()
{
regex_t *findDate;
regcomp(findDate,".", 0);
return 0;
}

 

It crashes on regcomp with a seg error.