Re: Building struct branch fails
- Posted by cargoan Jan 22, 2015
- 1646 views
???
-- struct.ex include std/machine.e memstruct test_t long a long b long c long d long e end memstruct atom ptr = allocate( sizeof(test_t) ) ptr.test_t.a = 1 ptr.test_t.b = 2 ptr.test_t.c = 3 ptr.test_t.d = 4 ptr.test_t.e = 5 printf(1,"\n\tptr.test_t.e = %d\n", ptr.test_t.e) free( ptr )
[$]: eui -v; eui struct.ex Euphoria Interpreter v4.1.0 development 64-bit Linux, Using System Memory Revision Date: 2015-01-18 16:51:09, Id: 6273:511ab308da2e ptr.test_t.e = 5