Destructor (computer Programming) - in C With GCC Extensions

In C With GCC Extensions

The GNU Compiler Collection's C compiler comes with 2 extensions that allow to implement destructors:

  • the "destructor" function attribute allows defining global prioritized destructor functions: when main returns, these functions are called in priority order before the process terminates. See also
  • the "cleanup" variable attribute allows attaching a destructor function to a variable: the function is called when the variable goes out of scope.

Read more about this topic:  Destructor (computer Programming)

Famous quotes containing the word extensions:

    If we focus exclusively on teaching our children to read, write, spell, and count in their first years of life, we turn our homes into extensions of school and turn bringing up a child into an exercise in curriculum development. We should be parents first and teachers of academic skills second.
    Neil Kurshan (20th century)