I've tried reading around and i haven't had any luck getting sscanf to work with what i'm trying to do. Initially, i was using strtok to chop up some values that i need to store them into seperate variables in my link list. I was wondering if there are any simple examples for sscanf
to save the following somewhere so i can store them into a linklist:
I just want to be able to get a reference to "Sarah" and store it somewhere so i can pass it to my addtolist method. It's quiet easy hard coding it i.e. having a variable to store the name and total earnings but once i add more employees to the text file the old values are overwritten.
Any help would be appreciated.