Guest User

Untitled

a guest
May 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.71 KB | None | 0 0
  1.         switch(selection)
  2.         {
  3.             case 'y':
  4.             case 'Y':
  5.                 size++;
  6.                 printf("Contact Added......\n");
  7.                 return;
  8.             case 'n':
  9.             case 'N':
  10.                 memset(pb[size].name, 0, 32 + 1);
  11.                 memset(pb[size].mobile, 0, 32 + 1);
  12.                 break;
  13.             case 'b':
  14.             case 'B':
  15.                 memset(pb[size].name, 0, 32 + 1);
  16.                 memset(pb[size].mobile, 0, 32 + 1);
  17.                 printf("No Contact Added..... \n");
  18.                 return;
  19.             default:
  20.                 printf("Invalid... default to N\n");
  21.                 break;
  22.         }
  23.  
  24.         printf("\n");
  25.     }
  26. }
Add Comment
Please, Sign In to add comment