Auteur: Roman Rybalko
Date:
À: pcre-dev
Sujet: [pcre-dev] Storing of compiled expressions
Hi all.
I'm trying to store compiled expression this way:
pcre* regcomp = pcre_compile(regexp_str, 0, &error, &erroffset, NULL);
pcre_fullinfo(regcomp, NULL, PCRE_INFO_SIZE, &size);
write(fd, (const void*)&size, sizeof(size));
write(fd, regcomp, size);
then I'm going to read it from the file in other process on the same
architecture.
I know it won't work.
Can anybody give me an advice how to store compiled pcre* data and
whether it's reasonable at all?
--
WBR,
Roman Rybalko