View Single Post
Old 22 March 2015, 21:50   #2
Cylon
Registered User

 
Join Date: Oct 2014
Location: Europe
Posts: 466
Code:
newtype.foo
  a.w
  b.w
  c.w
end newtype

deftype.foo   tsrc, tdest

copymem_ &tsrc.foo,&tdest.foo,SizeOf.foo
Like that.

Beware of strings!
a d.s inside a newtype is just a pointer, so the address (and length) of the string is provided, not the string itself!
Instead, you could use a char array , e.g.
d.b[32].

Make it a nice Statement with proper address checks and so on.
Cylon is offline  
 
Page generated in 0.04182 seconds with 11 queries