🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1863

Faulty memcmp in gcc 2.2.2/emx ?!

#1863
From: Erik van Linstee
Date: Thu, 12 Nov 1992 10:40
16 lines
1035 bytes
I just found out that memcmp reverses the return value.
It returns -1 when 1 is supposed to return and vice versa.
Has anyone else noticed this, fixed it and is able to
tell me about it?
I could rebuild the memcmp code and replace it in the
library if someone could point me out how to go about, 
since I am rather new at gcc.

Erik


-- 
Erik van Linstee   |   Delft University of Technology   |   I'll be back ... 
----
   We are god, 'cause only we can create the idea of his existence
   in our holy brains...  (Yello)
Technical Details
Message-ID: <1992Nov12.104003.23035@donau.et.tudelft.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!donau!dutecaj.et.tudelft.nl!linstee

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!donau!dutecaj.et.tudelft.nl!linstee
From: linstee@dutecaj.et.tudelft.nl (Erik van Linstee)
Subject: Faulty memcmp in gcc 2.2.2/emx ?!
Message-ID: <1992Nov12.104003.23035@donau.et.tudelft.nl>
Sender: news@donau.et.tudelft.nl (UseNet News System)
Nntp-Posting-Host: dutecaj.et.tudelft.nl
Organization: Delft University of Technology, Dept. of Electrical Engineering
Date: Thu, 12 Nov 1992 10:40:03 GMT
Lines: 16