Date: Thu, 16 May 2002 13:09:48 +0200 (MEST) From: Paul Everlund <tdv94ped@cs.umu.se> To: shubhamr <shubhamr@malkauns.nsc.com> Cc: "questions@FreeBSD.ORG" <questions@FreeBSD.ORG> Subject: Re: system memory copy? Message-ID: <Pine.GSO.4.33.0205161305300.10578-100000@gren.cs.umu.se> In-Reply-To: <3CE38EF2.54AA90EC@malkauns.nsc.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 16 May 2002, shubhamr wrote: > to copy byte by byte into system memory/buffers,which routine must I > use. > bcopy and memcpy are for string copying,right?Can I use the same? > > Thanks in advance > shubha As a string is made up as a vector of chars, and a char is one byte, you should be able to use either function, bcopy or memcpy, to do byte copies. memcpy seems to use bcopy, and with bcopy you can copy strings that overlap, also memcpy seems to be able to do this. Read 'man 3 bcopy' and 'man 3 memcpy' for more information, which I suppose you already have done. :-) Good luck! Best regards, Paul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.33.0205161305300.10578-100000>