Xref: utzoo comp.unix.xenix:4927 comp.lang.c:16177 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!uxc!csd4.milw.wisc.edu!uwmcsd1!lakesys!chad From: chad@lakesys.UUCP (D. Chadwick Gibbons) Newsgroups: comp.unix.xenix,comp.lang.c Subject: memcpy() Summary: in need of nonrestrictive version Message-ID: <371@lakesys.UUCP> Date: 12 Feb 89 04:11:15 GMT Reply-To: chad@lakesys.UUCP (D. Chadwick Gibbons) Distribution: usa Organization: Lake Systems - Milwaukee, Wisconsin Lines: 22 I am in need of a version of memcpy() that handles alignment restrictions within pointers. The few versions of source that I have work well, except they do not allow you to preform an operation such as: char *dst; struct magic *src; memcpy(dst, src, sizeof(src)); The pointer alignment for the structure does not coincide with that of the character pointer, and thus the function bombs. Why not use the standard library version? I am running under XENIX and need to use a far pointer in a small model program...as you know, you have to write your own versions of the standard library routines in this situation. I need to be able to have *dst be a char far *dst, instead of the normal near pointer. I appreciate any information, of course. -- D. Chadwick Gibbons, chad@lakesys.lakesys.com, ...!uunet!marque!lakesys!chad