From: "Jerry van Dijk" Subject: Re: How to use _movedatal Newsgroups: comp.os.msdos.djgpp References: <349D2ED7 DOT D04 AT ns DOT sympatico DOT ca> Organization: Ordina Finance Message-ID: <01bd0f35$62094560$722d5c8b@aptiva> NNTP-Posting-Host: 139.92.45.114 Date: 22 Dec 97 23:57:59 GMT Lines: 29 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Dave, > The syntax I have shows _movedata(unsigned, unsigned, unsigned, > unsigned, size_t) > > unsigned, unsigned, unsigned, unsigned WHAT????? I kinda thought like > unsigned src seg, unsigned src offset, unsigned dest seg, unsigned dest > offset, but > isn't DJGPP supposd to work without these segment headaches? If you looked at the info you should have noticed that this functions is for tranfering data between conventional and linear memory. Thus the use of selectors. > long unsigned storage[1000000]; > long unsigned current[20000]; > > I want to be able to copy 20000 bytes from storage to current.. The > program will determine where to start copying from in array storage. The standard (ANSI) library function is memmove(void *dest, void *source, int num). -- -- Jerry van Dijk -- Consultant -- Ordina Finance