Hi, so I got this assignment to extract names from the /etc/passwd file in Linux, using C.
I'm supposed to use the strtok command to only get the: usename, first name (middle name) and last name.
The easy part of struct and main is done, what I'm having trouble with is the strtok part where I have to extract the information and write part as you can see in the code.
Any suggestions on how to solve it ?