[comp.lang.c] A dilemma with handles solved thanks

markd@Aus.Sun.COM (10/05/90)

sarima@tdatirv.UUCP (Stanley Friesen) (and others) writes:

>In article <markd.654876849@sunchat> markd@iti.org (Mark Delany) writes:
>>
>>...
>>In other words, because the real definitions of "handle" is full of
>>system dependencies, I want to define a *dummy* "handle" for the
>>purposes of the user's view of the library - especially considering
>>prototypes. 
>>...

>In the public header file:

>	typedef struct str_tag_name handle_t;

>	handle_t *xxopen();

> ..
>The advantage is that no type punning is involved - everything is declared
>properly according to its real type, but the implementation is still hidden.


Thank-you Stanley and others - persactly what I was after.

--

------------         -----------------     ---------------------
Mark Delany          markd@Aus.Sun.COM     ...!sun!sunchat!markd
------------         -----------------     ---------------------