I'm trying to read in this list of data entries and then find particular parts of the entry out. I have been told that sscanf is what to use but am having absolutely no luck! I think part of the problem is I don't know the proper format for sscanf... here's the code I currently have... any help would be much appreciated 
Code:
for (j=0; j< max_number; j++)
{
for (t = 0; t<max_number && sscanf (list_of_runners, "%c", &gender) == '('; t++)
{
age_index = t;
age_array [age_index]++;
}
}
I also don't know if age_array[age_index] will increment the number stored in the spot age_index of the array!