RE: Write System Pointer to User Space

Fred Kulack <kulack-r/[email protected]>
Newsgroups gmane.comp.lang.as400.mi
Message-ID <OF3BB9BFE2.E3FAB935-ON86257026.00587814-86257026.0058C7FE@us.ibm.com>
> If you're not using memcpy() or cpybwp then the 
> pointers are not copied, but rather are invalidated

For those C newbies.
Don't let this statement trick you into thinking you
have to write non-portable or ugly C. C language constructs
cause the compiler and translator to generate the required 
underlying instructions to keep the pointers valid 
(within reason).

Simple assignments and pointer arithmatic for example:
  struct1 = struct2
  spacePointer += 10
 


"It was a rigorous result in information theory that once you could 
learn in a sufficiently flexible manner - something humanity had achieved 
in the Bronze Age - the only limits you faced were speed and storage; 
any other structural changes were just a matter of style."
[Schild's Ladder by Greg Egan]

Fred A. Kulack - IBM eServer iSeries - Enterprise Application Solutions
ERP, Java DB2 access, Jdbc, JTA, etc...
IBM in Rochester, MN  (Phone: 507.253.5982   T/L 553-5982)
mailto:kulack/us.ibm.com   Personal: mailto:kulack/gmail.com
AIM Home:FKulack  AIM Work:FKulackWrk 
MSN Work: fakulack/hotmail.com (replace email / with @)
_______________________________________________
This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mi400
or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.