Show me some code.
void main(void)
{
    GRE_Startup();
    //…
    GRE_Shutdown();
}
That easy – well, almost.