Re: Manage C structures
- Posted by petelomax Sep 23, 2022
- 727 views
jmduro said...
writeStructure(struct, {allocate_string("A string"), 12, 25.2} )
Hmm, isn't that putting ptr/int/float into an int/float/char?
Also, wouldn't triple-quotes be better?
Icy_Viking said...
for i = 1 to length(rs) do printf(1,"%s",{i}) end for
That's never going to work, maybe you meant printf(1,"%s",{rs[i]}), or printf(1,"%d ",{rs[i]}), or why not just try ?rs