1999-04-16 09:35:26 +08:00
|
|
|
struct foo {
|
|
|
|
int a;
|
|
|
|
int b;
|
|
|
|
} afoo = { 1, 2};
|
|
|
|
|
|
|
|
struct foo *getfoo ()
|
|
|
|
{
|
|
|
|
return (&afoo);
|
|
|
|
}
|
|
|
|
|
1999-06-29 00:06:02 +08:00
|
|
|
#ifdef PROTOTYPES
|
1999-04-16 09:35:26 +08:00
|
|
|
void putfoo (struct foo *foop)
|
|
|
|
#else
|
|
|
|
void putfoo (foop)
|
|
|
|
struct foo *foop;
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
}
|