Advertisement
Guest User

Untitled

a guest
Apr 26th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. int main(void) {
  2. char buffer[1024];
  3. while (fgets(buffer, 1024, stdin)) {
  4. if ((strcasecmp(buffer,"a")) == 0) {
  5. aMethod();
  6. }
  7. if ((strcasecmp(buffer, "b")) == 0) {
  8. bMethod();
  9. }
  10. }
  11. }
  12.  
  13. buffer[strcpsn(buffer,"n")]=0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement