Re: Manage C structures
- Posted by jmduro Sep 25, 2022
- 630 views
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