1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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