Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!nic.csu.net!csun!kithrup!sef From: sef@kithrup.COM (Sean Eric Fagan) Newsgroups: comp.arch Subject: Re: standard extensions Message-ID: <1991Feb27.072337.15089@kithrup.COM> Date: 27 Feb 91 07:23:37 GMT References: <1991Feb25.135057.23667@linus.mitre.org> <1991Feb25.201406.18643@bingvaxu.cc.binghamton.edu> <3439.27ca4e40@iccgcc.decnet.ab.com> Organization: Kithrup Enterprises, Ltd. Lines: 16 In article <3439.27ca4e40@iccgcc.decnet.ab.com> herrickd@iccgcc.decnet.ab.com (daniel lance herrick) writes: >But I still have to obfuscate the code with > q = dividend / divisor > r = dividend % divisor /* even the operator is bad */ >when what I want is > (q, r) = dividend divided by divisor ANSI C has a function div(int, int) which returns a vector. In the form of a *struct*, mind you, but gcc has, I believe, some extensions which allow doing such things easier. -- Sean Eric Fagan | "I made the universe, but please don't blame me for it; sef@kithrup.COM | I had a bellyache at the time." -----------------+ -- The Turtle (Stephen King, _It_) Any opinions expressed are my own, and generally unpopular with others.