I'm trying to develop a C function that takes a line of user input, say example this line:
1X 1X 3Y 1Z 1Z 1Z 1Z 2X 2X
(EDIT: This is just an arbitrary example of what the user will enter. In the actual program, they can enter anywhere between 1 and 48 digit-character pairs.)
The idea is that the user will insert this entire line, and it will split it up into 9 parts (each number and character pair is one part). Then, the number and the character pair will also be split from each other (I'm thinking for this part, they will both belong to a struct containing a numValue and charValue).
What can I use to split up the user's input? I'm relatively new to C.