🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3623

Mutiple Returns

#3623
From: Jim Fleming
Date: Thu, 03 Aug 1995 03:17
31 lines
1213 bytes
Has anyone looked into adding multiple return values to the ANSI C
standard...???

main()
{
	int i,j;

	(i,j) = f(4);
}

(a,b) f (z)
	float a;
	int b;
	int z;
{
	a = 3.14159;
	b = 0x5050;
}

Note...with this you get also get to return values via simple assignments.

-- 
Jim Fleming            /|\      Unir Corporation       Unir Technology, Inc.
jrf@tiger.bytes.com  /  | \     One Naperville Plaza   184 Shuman Blvd. #100
%Techno Cat I       /   |  \    Naperville, IL 60563   Naperville, IL 60563
East End, Tortola  |____|___\   1-708-505-5801         1-800-222-UNIR(8647)
British Virgin Islands__|______ 1-708-305-3277 (FAX)   1-708-305-0600
                 \__/-------\__/       http:199.3.34.13 telnet: port 5555
Smooth Sailing on Cruising C+@amarans  ftp: 199.3.34.12 <-----stargate----+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\____to the end of the OuterNet_|
Technical Details
Message-ID: <3vpf4f$nl6@News1.mcs.net>
Path: arc1-ca.pugleaf.net!news.mcs.net!usenet

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.mcs.net!usenet
From: jim.fleming@bytes.com (Jim Fleming)
Newsgroups: comp.std.c
Subject: Mutiple Returns
Date: 3 Aug 1995 03:17:35 GMT
Organization: Unir Corporation
Message-ID: <3vpf4f$nl6@News1.mcs.net>
NNTP-Posting-Host: pc11.bytes.com
Mime-Version: 1.0
X-Newsreader: WinVN 0.93.14