in reply to 'packlist'/'unpackstring' in XS

Can you please describe in more detail what you're wanting to do here? Are you trying to pass this information into XS and wondering how to handle it there, or are you trying to retrieve data from XS and convert it within Perl?

Replies are listed 'Best First'.
Re^2: 'packlist'/'unpackstring' in XS
by Anonymous Monk on Mar 22, 2017 at 04:37 UTC
    char *str = "Preved!!!"; char *pat = "C*"; dSP; PUTBACK; int n = unpackstring(pat, pat + 2, str, str + strlen(str), 0); SPAGAIN; AV* array2 = POPs; printf("%d, %d\n", n, av_len(array2)); =>>> 9, 44939024
    array2 is not a array pointer after POPs...
      Thank you all, I found a solution
      for (int c = n - 1; c >= 0; c--) { int a = POPi; printf("%c\n", a); }