Hi Guys, Quick question. Does memmove ensure that there will be a NULL put after the last element in dest? Correctness of pirq_guest_unbind, e.g., depends on it. Thanks, Himanshu -- ------------------------------------------------------------------------- Himanshu Raj PhD Student, GaTech (www.cc.gatech.edu/~rhim) I prefer to receive attachments in an open, non-proprietary format. ------------------------------------------------------------------------- _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Mon, Jan 09, 2006 at 06:01:47PM -0500, Himanshu Raj wrote:> Does memmove ensure that there will be a NULL put after the last > element in dest?no, it copy only N bytes from SRC to DEST. (if the Nth bytes of SRC is NULL then DEST will be NULL terminated as well) -- Vincent Hanquez _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 9 Jan 2006, at 23:01, Himanshu Raj wrote:> Quick question. > Does memmove ensure that there will be a NULL put after the last > element in dest? > Correctness of pirq_guest_unbind, e.g., depends on it.No, memmove does not do that. I think pirq_guest_bind/unbind are correct -- can you point out how you think they are broken? Thanks, Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel