home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_09_12 / 9n12120a < prev    next >
Text File  |  1991-11-06  |  507b  |  35 lines

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