1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

undefining a struct

Discussion in 'C' started by yossi123, Mar 9, 2008.

  1. yossi123

    yossi123 New Member

    Joined:
    Mar 9, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    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.


    Thanks.
     
  2. asadullah.ansari

    asadullah.ansari TechCake

    Joined:
    Jan 9, 2008
    Messages:
    356
    Likes Received:
    14
    Trophy Points:
    0
    Occupation:
    Developer
    Location:
    NOIDA
    in .h file write
    #define struct Mystruct

    and in .c or Cpp file write

    #undef struct
     

Share This Page