Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   undefining a struct (http://www.go4expert.com/forums/undefining-a-struct-t9203/)

yossi123 9Mar2008 21:34

undefining a struct

I wanted to know if it is possible to undefine a struct.
I want to merge to codes, the old one has a struct that it uses,
but the new code is based on a modified version of this struct.

I wondered if I can undefine the "old" struct and then to re-define
the new struct.


asadullah.ansari 12Mar2008 10:37

Re: undefining a struct
in .h file write
#define struct Mystruct

and in .c or Cpp file write

#undef struct

All times are GMT +5.5. The time now is 10:30.