Large program database linked list

profileaaditya1996
LLPDMain.c

#include <stdio.h> #include <stdlib.h> #include "readline.h" /********************************************************** * main: Prompts the user to enter an operation code, * * then calls a function to perform the requested * * action. Repeats until the user enters the * * command 'q'. Prints an error message if the user * * enters an illegal code. * **********************************************************/ int main(void) { char code; for(;;) { printf("-------------------------------------------\n"); printf("Enter operation code: \n"); printf("i-Insert \n"); printf("s - Search\n"); printf("u - Update \n"); printf("u - Update \n"); printf(" p - Print \n"); printf("q - quit \n"); printf("---------------------------------------------\n"); scanf(" %c", &code); switch (code){ case 'i': Insert(); break; case 's' : Search(); break; case 'u' : Update(); break; case 'p' : Print(); break; case 'q': return ; default: printf("Illegal code\n"); } printf("\n"); } }