English
Language : 

TL32 Datasheet, PDF (9/31 Pages) List of Unclassifed Manufacturers – Real Time System Testing MIT 16.070 Lecture 32
Some Exception Handling Methods
The importance of “call by reference” to facilitate error handling
• C functions can return only one value
• If that value = status, how does the calling task (or function) get any
information back from the task? The answer - Call by reference.
Instead of
int get_data();
where the int returned is data:
data = get_data();
Use
int get_data(*int x)
where int returned is the status and y is data:
status = get_data(&y)
hperry
5/4/01