Hi,


This is probably very simple, but I can't seem to find the answer.

This is my code (stripped)

c_d3rdat(SV * id3dat, SV * cd3dat)
    INIT:
       int  xs_id3dat[6];
    CODE:

       /* From xs_id3dat to the array id3dat*/
      for(i=0; i<6; i++) {
        av_store(av, i, newSViv((long) xs_id3dat[i]));
      }


I read that XS does not have a foreach loop.

I would like to declare the length of xs_id3dat only once in INIT and
retreive the length in the CODE to
replace the " i<6"

I tried "av_len" and, as expected, it does not work.

How could I get this length?

Thanks,

Thierry




Reply via email to