This code compiles and links with no problems but when executed seg faults (when newAV() called).#include "EXTERN.h" #include "perl.h" #include "XSUB.h" int main() { AV* list; list = newAV(); av_push(list,newSViv(5)); I32 n = av_len(list); printf("d%\n",n); return 1; }
In reply to Perl API with C by bakunin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |