use Inline C => Config => LIBS => '-lparser';
####
use Inline C => Config => LIBS => '-lfoo';
####
use Inline C => Config => LIBS => '-L/path/to/lib -lfoo';
####
use Inline C => Config =>
BUILD_NOISY => 1,
LIBS => '-L/path/to/lib -lfoo';
####
use Inline C => <
#include
#include
// Wild guess follows:
int parser (char * url, char * page, char * pool, int lenx2) {
// C code that does whatever
// it is that parser()does.
}
char* MyParser(char *url, char* page)
{
char *pool;
int len;
int ret;
len = strlen(page);
// page = (char*)malloc(len);
pool = (char*)malloc(2*len+1);
// parsing page
ret = parser(url, page, pool, 2*len+1);
if(ret > 0)
return pool;
free(pool);
}
END_C