Path: 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 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