Re: Manage C structures

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

You are right Pete. I din't realize I declared first item as an int. It should have been a pointer.

Jean-Marc

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

Search



Quick Links

User menu

Not signed in.

Misc Menu