🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1390

memcmp reverses return value

#1390
From: Erik van Linstee
Date: Thu, 12 Nov 1992 10:57
15 lines
972 bytes
Has this been mentioned or noticed before? I just ran
into it when a program I got gave me wrong results
whereas the DOS version worked fine. I finally traced
it to memcmp, which returns -1 instead of 1 and vice
versa.

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.105714.23337@donau.et.tudelft.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!constellation!convex!convex!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!dutecaj.et.tudelft.nl!linstee

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!constellation!convex!convex!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!dutecaj.et.tudelft.nl!linstee
From: linstee@dutecaj.et.tudelft.nl (Erik van Linstee)
Subject: memcmp reverses return value
Message-ID: <1992Nov12.105714.23337@donau.et.tudelft.nl>
Sender: gnulists@ai.mit.edu
Organization: Delft University of Technology, Dept. of Electrical Engineering
Distribution: gnu
Date: Thu, 12 Nov 1992 10:57:14 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 17