21.01.2012, 21:31
Your sscanf is missing a closing bracket to start with. All you need to do is use strcmp with pname, detect if it's 'Tan' using strcmp then change the ID and name to theirs if it is 'Tan'. I'm pretty sure you know how to do that.