home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_09_12
/
9n12114b
< prev
next >
Wrap
Text File
|
1991-10-21
|
477b
|
21 lines
/* LISTING 5 - CIRCLE.C */
#include "obj.h"
/* file-static getcolor member function */
static int circle_getcolor(CIRCLE *pc)
{ return pc->color; }
/* file-static setcolor member function */
static int circle_setcolor(CIRCLE *pc,
int val);
{ return (pc->color = val); }
/* global CIRCLE_ACTIONS package */
CIRCLE_ACTIONS cact =
{
circle_getcolor, circle_setcolor
}; /* initialize the action package */