Re: wrapping C code - my exercise in incompetence.

new topic     » goto parent     » topic index » view thread      » older message » newer message

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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu