Article View: comp.std.c
Article #2719div() & ldiv() behavior?
From: Steve Emmerson
Date: Wed, 10 Apr 1991 13:39
Date: Wed, 10 Apr 1991 13:39
15 lines
983 bytes
983 bytes
Hi, Would someone who knows please tell me the behavior of div() and ldiv()? My POSIX book says nothing, and my K&R2 only states that they return the quotient and remainder of the `numer' and `denom' arguments in the `quot' and `rem' members of their associated structure types. I know what this means when both arguments are positive, but I'm uncertain what this means for the other three cases. I you would tell me, I would appreciate it. Thanks in advance. Steve Emmerson steve@unidata.ucar.edu ...!ncar!unidata!steve
Technical Details
Message-ID:
<10989@ncar.ucar.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!asuvax!noao!ncar!ucar!unidata!steveShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!asuvax!noao!ncar!ucar!unidata!steve From: steve@unidata.ucar.edu (Steve Emmerson) Newsgroups: comp.std.c Subject: div() & ldiv() behavior? Message-ID: <10989@ncar.ucar.edu> Date: 10 Apr 91 13:39:00 GMT Sender: news@ncar.ucar.edu Reply-To: steve@unidata.ucar.edu (Steve Emmerson) Distribution: na Organization: UCAR/Unidata, Boulder CO Lines: 15