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 >
Text File  |  1991-10-21  |  477b  |  21 lines

  1. /* LISTING 5 - CIRCLE.C */
  2. #include "obj.h"
  3.  
  4. /* file-static getcolor member function */
  5. static int circle_getcolor(CIRCLE *pc)
  6.    { return pc->color; }
  7.  
  8.  
  9. /* file-static setcolor member function */
  10. static int circle_setcolor(CIRCLE *pc,
  11.                               int val);
  12.    { return (pc->color = val); }
  13.  
  14.  
  15. /* global CIRCLE_ACTIONS package */
  16. CIRCLE_ACTIONS cact =
  17.    {
  18.    circle_getcolor, circle_setcolor
  19.    };    /* initialize the action package  */
  20.  
  21.