It has always been possible to return structures in C.
Sorry, but you are mistaken.
"There are a number of restrictions on C structures. The essential rules are
that the only operations that you can perform on a structure are take its
address with &, and access one of its memebers. This implies that structures
may not be assigned to or copied as a unit, and that they can not be passed
===============
to or returned from functions."
=======================
The C Programming Language
Brian W. Kernighan * Dennis M. Ritchie
Copyright (c) 1978 by Bell Telephone Laboratories, Incorporated
It has been possible to pass and return _pointers to structures_ in C, but
only recent standards (i.e. 89 and after) permitted passing and returning
actual structures.[/QUOTE]
No, the ability to pass and return structures was added
into Unix Version 7 C. Along with the enumeration type.
_Recent Changes to C_,
November 15, 1978,
Page 277, Unix Programmers Manul, V.2
1979, 1983, Bell Telephone Laboratories
Holt Reinhart and Wilson
There was a warning that the PDP-11 version didn't handle
reentrancy within an interrupt properly, though.
Mark Zenier
[email protected]
Googleproofaddress(account:mzenier provider:eskimo domain:com)