Singleton Design Pattern C Real Time Example