Guest User

Untitled

a guest
Mar 24th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. char action[5];
  2. char from[2];
  3. char to[2];
  4. scanf("%s", action);
  5. strncpy(from, &action[0], 2);
  6. strncpy(to, &action[3], 2);
Add Comment
Please, Sign In to add comment