Re: Manage C structures

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu