Basic phonebook application in c runing on console