Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch(selection)
- {
- case 'y':
- case 'Y':
- size++;
- printf("Contact Added......\n");
- return;
- case 'n':
- case 'N':
- memset(pb[size].name, 0, 32 + 1);
- memset(pb[size].mobile, 0, 32 + 1);
- break;
- case 'b':
- case 'B':
- memset(pb[size].name, 0, 32 + 1);
- memset(pb[size].mobile, 0, 32 + 1);
- printf("No Contact Added..... \n");
- return;
- default:
- printf("Invalid... default to N\n");
- break;
- }
- printf("\n");
- }
- }
Add Comment
Please, Sign In to add comment