Re: wrapping C code - my exercise in incompetence.
- Posted by gbonvehi Mar 13, 2013
- 3005 views
The get_aiString_sequence function seems fine.
According to the structure declaration that I linked above, the size of aiString structure is fixed, so you should change the line
loc += length(tprop[1][2]) + 5
to
loc += 1024 + 4 -- MAXLEN + size_t
MAXLEN is defined as 1024 in the .h file and size_t may vary and you can get it dynamically as explained by Greg above but it's probably 4 in your system.