home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!murphy!gregb
- From: gregb@murphy.com (Greg Banschbach (Unigroup of New York))
- Subject: Memory functions - memcpy & memmove
- Message-ID: <BxArt0.9pE@murphy.com>
- Organization: Murphy & Durieu, New York, NY
- Date: Fri, 6 Nov 1992 13:50:58 GMT
- Lines: 30
-
-
-
- Dear fellow programmers,
-
- I am in the process of porting a program from MS-DOS to
- UNIX. The program is a database program. It calls "memmove"
- which is not available under Unix Sys5 rel 2. I substituted
- memcpy, in order to get it to compile. Now I discovered that
- what appears to be happening is that I am getting DUPLICATE
- records in the INDEX file - probably when the b-tree is moving
- nodes around. I still have to make sure that there are not
- any other problems, but I don't recall modifying any other parts
- of the code.
-
- Has anyone written a function which would exactly mimic
- memmove ? My C book says that they are not EXACTLY the same
- functions.
-
-
- Thanks very much,
-
-
- Greg ( gregb@murphy.com )
-
- P.S. Please respond by E-Mail. Unless you think someone else
- will benefit - but mail me anyway.
-
-
-
-
-