Pardon me, I need help on using the regcomp

I am not a C programmer. I tried my best to read the docuemntation and declare accodingly:

the regex_t structure (16bytes for the 4 4byte int (ie long), right?
and the structure regmatch_t is tow 4byte long long

Btw does regcomp aallocate the memeory for the string of "const char *re_endp"?

when I tried to use the dll for the regcomp, I must decalred something wrong because I got error from my programming tool PowerBuilder)
Error text = Specified argument type differs from required argument type at runtime in DLL function regcomp.
(invalid stack pointer on return from function call).