I have a file that we are supposed to use as input. It looks like this:
I'm going to read it in a buffer, but trying to find the logic to seperate the fields and then place in a variable. I was thinking something like:Code:name:curriculum:gradyear:ssn:dob
Any suggestions is greatly appreciated!Code:if(ispunct(buf[x]) != ':') strcpy(s->name, buf);