home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_09_11 / 9n11115a < prev    next >
Text File  |  1991-10-09  |  466b  |  30 lines

  1. struct _an_important_object
  2.    {
  3.    int one_member;
  4.    char another_member;
  5.    ....
  6.    };
  7.  
  8. typedef struct _an_important_object *AN_IMPORTANT_OBJECT;
  9.  
  10. /* Function prototypes */
  11.  
  12. AN_IMPORTANT_OBJECT their_function(void);
  13. void another_function(AN_IMPORTANT_OBJECT);
  14.  
  15. User file:
  16.  
  17. #include "important.h"
  18.  
  19. my_func()
  20.    {
  21.    AN_IMPORTANT_OBJECT my_object;
  22.  
  23.    my_object =  their_function();
  24.    ...
  25.    another_function(my_object);
  26.    ...
  27.    }
  28.  
  29.  
  30.