Re: Manage C structures
- Posted by Icy_Viking Sep 23, 2022
- 726 views
This is pretty neat. Although I'm not sure I fully understand. I can't get the one simple example test I wrote to work correctly.
include std/dll.e include std/machine.e include std/console.e include common.e include structs.e sequence rect = "struct _rect {" & "int x;" & "int y;" & "int w;" & "int h;" & "} RECT;" sequence r = allocateStructure(rect) sequence rs = readStructure(r) for i = 1 to length(rs) do printf(1,"%s",{i}) end for freeStructure(r)